request from: hawk checking if we should skip the build started at: Sat Aug 24 23:42:06 2019 fetching http://src.tld-linux.org/~buildertidev//srpms/bbb93763-586f-408c-976f-9760dc81c7cd/python-pytest-3.10.1-1.src.rpm fetched 900381 bytes, 22169.4 K/s installing srpm: python-pytest-3.10.1-1.src.rpm + install -d /tmp/B.W9HcNz/BUILD /tmp/B.W9HcNz/RPMS + LC_ALL=en_US.UTF-8 + rpm -qp --changelog python-pytest-3.10.1-1.src.rpm * Sat Aug 24 2019 TLD Linux - For complete changelog see: http://git.tld-linux.org/?p=packages/python-pytest.git;a=log;h=26bd69b5334542d6f73fb28b2a57ba3a5e8dd1a1 * Fri Nov 30 2018 Jakub Bogusz 26bd69b - tests fail mysterously when pyfakefs is installed; test_request_garbage test fails on builders * Wed Nov 28 2018 Jakub Bogusz 9c502aa - updated to 3.10.1 + rpm -Uhv --nodeps --define '_topdir /tmp/B.W9HcNz' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' python-pytest-3.10.1-1.src.rpm python-pytest ################################################## + rm -f python-pytest-3.10.1-1.src.rpm + install -m 700 -d /tmp/B.W9HcNz/BUILD/tmp + TMPDIR=/tmp/B.W9HcNz/BUILD/tmp + exec nice -n 19 rpmbuild -bp --short-circuit --nodeps --define '_topdir /tmp/B.W9HcNz' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' --target x86_64-tld-linux --define 'prep exit 0' /tmp/B.W9HcNz/python-pytest.spec Building target platforms: x86_64-tld-linux checking BuildConflict-ing packages no BuildConflicts found checking BR rpm: Building target platforms: x86_64-tld-linux no BR needed building RPM using: set -ex; : build-id: bbb93763-586f-408c-976f-9760dc81c7cd; TMPDIR=/tmp/B.W9HcNz/BUILD/tmp exec nice -n 19 rpmbuild -bb --define '_smp_mflags -j4' --define '_tld_builder 1' --define '_topdir /tmp/B.W9HcNz' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' --target x86_64-tld-linux /tmp/B.W9HcNz/python-pytest.spec + : build-id: bbb93763-586f-408c-976f-9760dc81c7cd + TMPDIR=/tmp/B.W9HcNz/BUILD/tmp + exec nice -n 19 rpmbuild -bb --define '_smp_mflags -j4' --define '_tld_builder 1' --define '_topdir /tmp/B.W9HcNz' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' --target x86_64-tld-linux /tmp/B.W9HcNz/python-pytest.spec Building target platforms: x86_64-tld-linux Executing(%prep): env -i TMP=/home/users/builder/tmp HOME=/home/users/builder PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/users/builder/bin TMPDIR=/tmp/B.W9HcNz/BUILD/tmp /bin/sh -e /tmp/B.W9HcNz/BUILD/tmp/rpm-tmp.88897 + umask 022 + cd /tmp/B.W9HcNz/BUILD + cd /tmp/B.W9HcNz/BUILD + rm -rf pytest-3.10.1 + /usr/bin/gzip -dc /tmp/B.W9HcNz/pytest-3.10.1.tar.gz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd pytest-3.10.1 + /bin/id -u + '[' 10001 '=' 0 ']' + true . + /bin/chmod -Rf -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (python-pytest-tests.patch):' Patch #0 (python-pytest-tests.patch): + build-2/lib creating build-2/lib/_pytest copying src/_pytest/cacheprovider.py -> build-2/lib/_pytest copying src/_pytest/recwarn.py -> build-2/lib/_pytest copying src/_pytest/deprecated.py -> build-2/lib/_pytest copying src/_pytest/warning_types.py -> build-2/lib/_pytest copying src/_pytest/main.py -> build-2/lib/_pytest copying src/_pytest/junitxml.py -> build-2/lib/_pytest copying src/_pytest/compat.py -> build-2/lib/_pytest copying src/_pytest/warnings.py -> build-2/lib/_pytest copying src/_pytest/python_api.py -> build-2/lib/_pytest copying src/_pytest/debugging.py -> build-2/lib/_pytest copying src/_pytest/outcomes.py -> build-2/lib/_pytest copying src/_pytest/pathlib.py -> build-2/lib/_pytest copying src/_pytest/stepwise.py -> build-2/lib/_pytest copying src/_pytest/doctest.py -> build-2/lib/_pytest copying src/_pytest/_version.py -> build-2/lib/_pytest copying src/_pytest/hookspec.py -> build-2/lib/_pytest copying src/_pytest/tmpdir.py -> build-2/lib/_pytest copying src/_pytest/helpconfig.py -> build-2/lib/_pytest copying src/_pytest/python.py -> build-2/lib/_pytest copying src/_pytest/setuponly.py -> build-2/lib/_pytest copying src/_pytest/monkeypatch.py -> build-2/lib/_pytest copying src/_pytest/reports.py -> build-2/lib/_pytest copying src/_pytest/terminal.py -> build-2/lib/_pytest copying src/_pytest/fixtures.py -> build-2/lib/_pytest copying src/_pytest/unittest.py -> build-2/lib/_pytest copying src/_pytest/runner.py -> build-2/lib/_pytest copying src/_pytest/nose.py -> build-2/lib/_pytest copying src/_pytest/pastebin.py -> build-2/lib/_pytest copying src/_pytest/__init__.py -> build-2/lib/_pytest copying src/_pytest/skipping.py -> build-2/lib/_pytest copying src/_pytest/freeze_support.py -> build-2/lib/_pytest copying src/_pytest/nodes.py -> build-2/lib/_pytest copying src/_pytest/logging.py -> build-2/lib/_pytest copying src/_pytest/setupplan.py -> build-2/lib/_pytest copying src/_pytest/capture.py -> build-2/lib/_pytest copying src/_pytest/pytester.py -> build-2/lib/_pytest copying src/_pytest/_argcomplete.py -> build-2/lib/_pytest copying src/_pytest/resultlog.py -> build-2/lib/_pytest creating build-2/lib/_pytest/assertion copying src/_pytest/assertion/rewrite.py -> build-2/lib/_pytest/assertion copying src/_pytest/assertion/util.py -> build-2/lib/_pytest/assertion copying src/_pytest/assertion/__init__.py -> build-2/lib/_pytest/assertion copying src/_pytest/assertion/truncate.py -> build-2/lib/_pytest/assertion creating build-2/lib/_pytest/_code copying src/_pytest/_code/_py2traceback.py -> build-2/lib/_pytest/_code copying src/_pytest/_code/code.py -> build-2/lib/_pytest/_code copying src/_pytest/_code/__init__.py -> build-2/lib/_pytest/_code copying src/_pytest/_code/source.py -> build-2/lib/_pytest/_code creating build-2/lib/_pytest/mark copying src/_pytest/mark/structures.py -> build-2/lib/_pytest/mark copying src/_pytest/mark/__init__.py -> build-2/lib/_pytest/mark copying src/_pytest/mark/evaluate.py -> build-2/lib/_pytest/mark copying src/_pytest/mark/legacy.py -> build-2/lib/_pytest/mark creating build-2/lib/_pytest/config copying src/_pytest/config/exceptions.py -> build-2/lib/_pytest/config copying src/_pytest/config/argparsing.py -> build-2/lib/_pytest/config copying src/_pytest/config/findpaths.py -> build-2/lib/_pytest/config copying src/_pytest/config/__init__.py -> build-2/lib/_pytest/config + pwd + PYTHONPATH=/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src /usr/bin/python -m pytest -k 'not test_pdb and not TestTerminal and not test_request_garbage' testing ============================= test session starts ============================== platform linux2 -- Python 2.7.16, pytest-3.10.1, py-1.7.0, pluggy-0.8.0 hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/tmp/B.W9HcNz/BUILD/pytest-3.10.1/.hypothesis/examples') rootdir: /tmp/B.W9HcNz/BUILD/pytest-3.10.1, inifile: tox.ini plugins: timeout-1.2.0, hypothesis-3.82.1 collected 2307 items / 72 deselected testing/acceptance_test.py ............................................. [ 2%] .....x...........s....... [ 3%] testing/deprecated_test.py ...................... [ 4%] testing/test_argcomplete.py .. [ 4%] testing/test_assertion.py .............................................. [ 6%] ........................s........... [ 7%] testing/test_assertrewrite.py ..........s.....s..................s...... [ 9%] ...................... [ 10%] testing/test_cacheprovider.py ......................................... [ 12%] testing/test_capture.py ...........x..................s................. [ 14%] ....s..s......s.................................s................. [ 17%] testing/test_collection.py ..............................x.............. [ 19%] ................... [ 20%] testing/test_compat.py ...ss... [ 20%] testing/test_config.py .........x.....s................................. [ 23%] ...................................... [ 24%] testing/test_conftest.py ............................................... [ 26%] .... [ 27%] testing/test_doctest.py ................................................ [ 29%] .................................................. [ 31%] testing/test_entry_points.py ... [ 31%] testing/test_helpconfig.py ....... [ 31%] testing/test_junitxml.py ............................................... [ 34%] .s.x...... [ 34%] testing/test_mark.py ................................................... [ 36%] ...................x.................. [ 38%] testing/test_modimport.py .............................................. [ 40%] ... [ 40%] testing/test_monkeypatch.py .................................... [ 42%] testing/test_nodes.py .......... [ 42%] testing/test_nose.py ................... [ 43%] testing/test_parseopt.py ...........................s [ 44%] testing/test_pastebin.py .... [ 44%] testing/test_pathlib.py ..................................... [ 46%] testing/test_pluginmanager.py ........................... [ 47%] testing/test_pytester.py x............................. [ 49%] testing/test_recwarn.py ...................................... [ 50%] testing/test_resultlog.py ........... [ 51%] testing/test_runner.py .....................sssssss....ssss......x...... [ 53%] ..................... [ 54%] testing/test_runner_xunit.py ............... [ 55%] testing/test_session.py ...................... [ 56%] testing/test_skipping.py ............................................... [ 58%] ............................. [ 59%] testing/test_stepwise.py ...... [ 59%] testing/test_terminal.py ............................................... [ 61%] ........................................sss.....s [ 64%] testing/test_tmpdir.py ...........s........ [ 65%] testing/test_unittest.py ....................ssssssss..................s [ 67%] .. [ 67%] testing/test_warnings.py ......s....................... [ 68%] testing/code/test_code.py ............... [ 69%] testing/code/test_excinfo.py ...............s........................... [ 71%] ...................................ssssss......... [ 73%] testing/code/test_source.py ............................................ [ 75%] ....................... [ 76%] testing/examples/test_issue519.py . [ 76%] testing/freeze/tests/test_doctest.txt . [ 76%] testing/freeze/tests/test_trivial.py .. [ 76%] testing/logging/test_fixture.py .......... [ 77%] testing/logging/test_formatter.py . [ 77%] testing/logging/test_reporting.py ................................ [ 78%] testing/python/approx.py ............................................... [ 80%] .... [ 80%] testing/python/collect.py .............................................. [ 82%] ...................................... [ 84%] testing/python/fixture.py .............................................. [ 86%] ...............................x........................................ [ 89%] .............................................................. [ 92%] testing/python/integration.py ....xsss........... [ 93%] testing/python/metafunc.py ............................................. [ 95%] ........................................x............. [ 97%] 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%] =========================== short test summary info ============================ SKIP [1] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/test_parseopt.py:325: bash provided no output, argcomplete not available? SKIP [1] testing/code/test_excinfo.py:1102: condition: sys.version_info[0] < 3 SKIP [1] testing/test_assertrewrite.py:401: condition: sys.version_info < (3,5) SKIP [1] testing/test_assertion.py:934: Python 3.4+ shows chained exceptions on multiprocess SKIP [1] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/test_terminal.py:1309: could not import 'xdist' SKIP [1] testing/test_warnings.py:127: warnings message is unicode is ok in python3 SKIP [1] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/test_terminal.py:1293: could not import 'xdist' SKIP [1] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/python/integration.py:168: could not import 'unittest.mock' SKIP [1] testing/code/test_excinfo.py:1290: condition: sys.version_info[0] < 3 SKIP [1] testing/test_assertrewrite.py:769: packages without __init__.py not supported on python 2 SKIP [1] testing/test_assertrewrite.py:252: bytes is a string type in python 2 SKIP [2] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/test_capture.py:925: could not run 'lsof' SKIP [2] testing/code/test_excinfo.py:1188: condition: sys.version_info[0] < 3 SKIP [1] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/python/integration.py:130: could not import 'unittest.mock' SKIP [2] testing/code/test_excinfo.py:1230: condition: sys.version_info[0] < 3 SKIP [1] testing/test_compat.py:100: async syntax available in Python 3.5+ SKIP [1] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/python/integration.py:146: could not import 'unittest.mock' SKIP [1] testing/test_compat.py:78: asyncio available in Python 3.4+ SKIP [1] testing/test_capture.py:809: python 3 only behaviour SKIP [1] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/acceptance_test.py:934: could not import 'zipapp' SKIP [1] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/code/test_excinfo.py:280: could not import 'decorator' SKIP [1] testing/test_tmpdir.py:179: win only SKIP [1] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/test_terminal.py:1298: could not import 'xdist' SKIP [1] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/test_terminal.py:1404: could not import 'xdist' SKIP [8] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/test_unittest.py:398: could not import 'twisted.trial.unittest' SKIP [1] testing/test_capture.py:501: only have capsysbinary in python 3 SKIP [1] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/test_junitxml.py:1041: could not import 'xdist' SKIP [11] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/test_runner.py:429: could not import 'xdist.boxed' SKIP [1] testing/test_capture.py:841: python2 has no buffer SKIP [1] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/test_unittest.py:940: could not import 'unittest2' SKIP [1] testing/test_config.py:198: condition: sys.version_info[0] < 3 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/fixture.py::TestAutouseDiscovery::()::test_setup_enabled_functionnode 'enabled' feature not implemented XFAIL testing/python/integration.py::TestMockDecoration::()::test_wrapped_getfuncargnames_patching getfuncargnames breaks if mock is imported XFAIL testing/python/metafunc.py::TestMarkersWithParametrization::()::test_nested_marks is this important to support?? ===== 2173 passed, 51 skipped, 72 deselected, 11 xfailed in 270.37 seconds ===== + LDFLAGS='-Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-z,combreloc ' + export LDFLAGS + CFLAGS=' -O2 -fwrapv -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fPIC -march=x86-64 ' + export CFLAGS + CXXFLAGS=' -O2 -fwrapv -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fPIC -march=x86-64 ' + export CXXFLAGS + CC=x86_64-tld-linux-gcc + export CC + CXX=x86_64-tld-linux-g++ + export CXX + /usr/bin/python3 setup.py build '--build-base=build-3' running build running build_py creating build-3 creating build-3/lib copying src/pytest.py -> build-3/lib creating build-3/lib/_pytest copying src/_pytest/cacheprovider.py -> build-3/lib/_pytest copying src/_pytest/recwarn.py -> build-3/lib/_pytest copying src/_pytest/deprecated.py -> build-3/lib/_pytest copying src/_pytest/warning_types.py -> build-3/lib/_pytest copying src/_pytest/main.py -> build-3/lib/_pytest copying src/_pytest/junitxml.py -> build-3/lib/_pytest copying src/_pytest/compat.py -> build-3/lib/_pytest copying src/_pytest/warnings.py -> build-3/lib/_pytest copying src/_pytest/python_api.py -> build-3/lib/_pytest copying src/_pytest/debugging.py -> build-3/lib/_pytest copying src/_pytest/outcomes.py -> build-3/lib/_pytest copying src/_pytest/pathlib.py -> build-3/lib/_pytest copying src/_pytest/stepwise.py -> build-3/lib/_pytest copying src/_pytest/doctest.py -> build-3/lib/_pytest copying src/_pytest/_version.py -> build-3/lib/_pytest copying src/_pytest/hookspec.py -> build-3/lib/_pytest copying src/_pytest/tmpdir.py -> build-3/lib/_pytest copying src/_pytest/helpconfig.py -> build-3/lib/_pytest copying src/_pytest/python.py -> build-3/lib/_pytest copying src/_pytest/setuponly.py -> build-3/lib/_pytest copying src/_pytest/monkeypatch.py -> build-3/lib/_pytest copying src/_pytest/reports.py -> build-3/lib/_pytest copying src/_pytest/terminal.py -> build-3/lib/_pytest copying src/_pytest/fixtures.py -> build-3/lib/_pytest copying src/_pytest/unittest.py -> build-3/lib/_pytest copying src/_pytest/runner.py -> build-3/lib/_pytest copying src/_pytest/nose.py -> build-3/lib/_pytest copying src/_pytest/pastebin.py -> build-3/lib/_pytest copying src/_pytest/__init__.py -> build-3/lib/_pytest copying src/_pytest/skipping.py -> build-3/lib/_pytest copying src/_pytest/freeze_support.py -> build-3/lib/_pytest copying src/_pytest/nodes.py -> build-3/lib/_pytest copying src/_pytest/logging.py -> build-3/lib/_pytest copying src/_pytest/setupplan.py -> build-3/lib/_pytest copying src/_pytest/capture.py -> build-3/lib/_pytest copying src/_pytest/pytester.py -> build-3/lib/_pytest copying src/_pytest/_argcomplete.py -> build-3/lib/_pytest copying src/_pytest/resultlog.py -> build-3/lib/_pytest creating build-3/lib/_pytest/assertion copying src/_pytest/assertion/rewrite.py -> build-3/lib/_pytest/assertion copying src/_pytest/assertion/util.py -> build-3/lib/_pytest/assertion copying src/_pytest/assertion/__init__.py -> build-3/lib/_pytest/assertion copying src/_pytest/assertion/truncate.py -> build-3/lib/_pytest/assertion creating build-3/lib/_pytest/_code copying src/_pytest/_code/_py2traceback.py -> build-3/lib/_pytest/_code copying src/_pytest/_code/code.py -> build-3/lib/_pytest/_code copying src/_pytest/_code/__init__.py -> build-3/lib/_pytest/_code copying src/_pytest/_code/source.py -> build-3/lib/_pytest/_code creating build-3/lib/_pytest/mark copying src/_pytest/mark/structures.py -> build-3/lib/_pytest/mark copying src/_pytest/mark/__init__.py -> build-3/lib/_pytest/mark copying src/_pytest/mark/evaluate.py -> build-3/lib/_pytest/mark copying src/_pytest/mark/legacy.py -> build-3/lib/_pytest/mark creating build-3/lib/_pytest/config copying src/_pytest/config/exceptions.py -> build-3/lib/_pytest/config copying src/_pytest/config/argparsing.py -> build-3/lib/_pytest/config copying src/_pytest/config/findpaths.py -> build-3/lib/_pytest/config copying src/_pytest/config/__init__.py -> build-3/lib/_pytest/config + pwd + PYTHONPATH=/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src /usr/bin/python3 -m pytest -v -k 'not test_pdb and not TestTerminal and not test_request_garbage' testing ============================= test session starts ============================== platform linux -- Python 3.7.4, pytest-3.10.1, py-1.7.0, pluggy-0.8.0 -- /usr/bin/python3 cachedir: .pytest_cache hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/tmp/B.W9HcNz/BUILD/pytest-3.10.1/.hypothesis/examples') rootdir: /tmp/B.W9HcNz/BUILD/pytest-3.10.1, inifile: tox.ini plugins: timeout-1.2.0, hypothesis-3.82.1 collecting ... collected 2307 items / 72 deselected testing/acceptance_test.py::TestGeneralUsage::test_config_error FAILED [ 0%] testing/acceptance_test.py::TestGeneralUsage::test_root_conftest_syntax_error FAILED [ 0%] testing/acceptance_test.py::TestGeneralUsage::test_early_hook_error_issue38_1 FAILED [ 0%] testing/acceptance_test.py::TestGeneralUsage::test_early_hook_configure_error_issue38 FAILED [ 0%] testing/acceptance_test.py::TestGeneralUsage::test_file_not_found FAILED [ 0%] testing/acceptance_test.py::TestGeneralUsage::test_file_not_found_unconfigure_issue143 FAILED [ 0%] testing/acceptance_test.py::TestGeneralUsage::test_config_preparse_plugin_option FAILED [ 0%] testing/acceptance_test.py::TestGeneralUsage::test_assertion_magic FAILED [ 0%] testing/acceptance_test.py::TestGeneralUsage::test_nested_import_error FAILED [ 0%] testing/acceptance_test.py::TestGeneralUsage::test_not_collectable_arguments FAILED [ 0%] testing/acceptance_test.py::TestGeneralUsage::test_better_reporting_on_conftest_load_failure FAILED [ 0%] testing/acceptance_test.py::TestGeneralUsage::test_early_skip FAILED [ 0%] testing/acceptance_test.py::TestGeneralUsage::test_issue88_initial_file_multinodes FAILED [ 0%] testing/acceptance_test.py::TestGeneralUsage::test_issue93_initialnode_importing_capturing FAILED [ 0%] testing/acceptance_test.py::TestGeneralUsage::test_conftest_printing_shows_if_error FAILED [ 0%] testing/acceptance_test.py::TestGeneralUsage::test_chdir PASSED [ 0%] testing/acceptance_test.py::TestGeneralUsage::test_issue109_sibling_conftests_not_loaded FAILED [ 0%] testing/acceptance_test.py::TestGeneralUsage::test_directory_skipped FAILED [ 0%] testing/acceptance_test.py::TestGeneralUsage::test_multiple_items_per_collector_byid FAILED [ 0%] testing/acceptance_test.py::TestGeneralUsage::test_skip_on_generated_funcarg_id FAILED [ 0%] testing/acceptance_test.py::TestGeneralUsage::test_direct_addressing_selects FAILED [ 0%] testing/acceptance_test.py::TestGeneralUsage::test_direct_addressing_notfound FAILED [ 0%] testing/acceptance_test.py::TestGeneralUsage::test_docstring_on_hookspec PASSED [ 1%] testing/acceptance_test.py::TestGeneralUsage::test_initialization_error_issue49 FAILED [ 1%] testing/acceptance_test.py::TestGeneralUsage::test_issue134_report_error_when_collecting_member[test_fun.py::test_a] FAILED [ 1%] testing/acceptance_test.py::TestGeneralUsage::test_report_all_failed_collections_initargs FAILED [ 1%] testing/acceptance_test.py::TestGeneralUsage::test_namespace_import_doesnt_confuse_import_hook PASSED [ 1%] testing/acceptance_test.py::TestGeneralUsage::test_unknown_option FAILED [ 1%] testing/acceptance_test.py::TestGeneralUsage::test_getsourcelines_error_issue553 FAILED [ 1%] testing/acceptance_test.py::TestGeneralUsage::test_plugins_given_as_strings FAILED [ 1%] testing/acceptance_test.py::TestGeneralUsage::test_parametrized_with_bytes_regex FAILED [ 1%] testing/acceptance_test.py::TestGeneralUsage::test_parametrized_with_null_bytes FAILED [ 1%] testing/acceptance_test.py::TestInvocationVariants::test_earlyinit PASSED [ 1%] testing/acceptance_test.py::TestInvocationVariants::test_pydoc PASSED [ 1%] testing/acceptance_test.py::TestInvocationVariants::test_import_star_py_dot_test PASSED [ 1%] testing/acceptance_test.py::TestInvocationVariants::test_import_star_pytest PASSED [ 1%] testing/acceptance_test.py::TestInvocationVariants::test_double_pytestcmdline PASSED [ 1%] testing/acceptance_test.py::TestInvocationVariants::test_python_minus_m_invocation_ok PASSED [ 1%] testing/acceptance_test.py::TestInvocationVariants::test_python_minus_m_invocation_fail PASSED [ 1%] testing/acceptance_test.py::TestInvocationVariants::test_python_pytest_package PASSED [ 1%] testing/acceptance_test.py::TestInvocationVariants::test_equivalence_pytest_pytest PASSED [ 1%] testing/acceptance_test.py::TestInvocationVariants::test_invoke_with_string FAILED [ 1%] testing/acceptance_test.py::TestInvocationVariants::test_invoke_with_path FAILED [ 1%] testing/acceptance_test.py::TestInvocationVariants::test_invoke_plugin_api FAILED [ 1%] testing/acceptance_test.py::TestInvocationVariants::test_pyargs_importerror FAILED [ 2%] testing/acceptance_test.py::TestInvocationVariants::test_cmdline_python_package FAILED [ 2%] testing/acceptance_test.py::TestInvocationVariants::test_cmdline_python_namespace_package FAILED [ 2%] testing/acceptance_test.py::TestInvocationVariants::test_invoke_test_and_doctestmodules FAILED [ 2%] testing/acceptance_test.py::TestInvocationVariants::test_cmdline_python_package_symlink FAILED [ 2%] testing/acceptance_test.py::TestInvocationVariants::test_cmdline_python_package_not_exists FAILED [ 2%] testing/acceptance_test.py::TestInvocationVariants::test_noclass_discovery_if_not_testcase xfail [ 2%] testing/acceptance_test.py::TestInvocationVariants::test_doctest_id FAILED [ 2%] testing/acceptance_test.py::TestInvocationVariants::test_core_backward_compatibility PASSED [ 2%] testing/acceptance_test.py::TestInvocationVariants::test_has_plugin PASSED [ 2%] testing/acceptance_test.py::TestDurations::test_calls FAILED [ 2%] testing/acceptance_test.py::TestDurations::test_calls_show_2 FAILED [ 2%] testing/acceptance_test.py::TestDurations::test_calls_showall FAILED [ 2%] testing/acceptance_test.py::TestDurations::test_calls_showall_verbose FAILED [ 2%] testing/acceptance_test.py::TestDurations::test_with_deselected FAILED [ 2%] testing/acceptance_test.py::TestDurations::test_with_failing_collection FAILED [ 2%] testing/acceptance_test.py::TestDurations::test_with_not FAILED [ 2%] testing/acceptance_test.py::TestDurationWithFixture::test_setup_function FAILED [ 2%] testing/acceptance_test.py::test_zipimport_hook PASSED [ 2%] testing/acceptance_test.py::test_import_plugin_unicode_name FAILED [ 2%] testing/acceptance_test.py::test_deferred_hook_checking FAILED [ 2%] testing/acceptance_test.py::test_fixture_values_leak FAILED [ 2%] testing/acceptance_test.py::test_fixture_order_respects_scope FAILED [ 2%] testing/acceptance_test.py::test_frame_leak_on_failing_test PASSED [ 3%] testing/acceptance_test.py::test_fixture_mock_integration FAILED [ 3%] testing/acceptance_test.py::test_usage_error_code FAILED [ 3%] testing/deprecated_test.py::test_yield_tests_deprecation PASSED [ 3%] testing/deprecated_test.py::test_compat_properties_deprecation FAILED [ 3%] testing/deprecated_test.py::test_cached_setup_deprecation FAILED [ 3%] testing/deprecated_test.py::test_custom_class_deprecation FAILED [ 3%] testing/deprecated_test.py::test_funcarg_prefix_deprecation PASSED [ 3%] testing/deprecated_test.py::test_pytest_setup_cfg_deprecated PASSED [ 3%] testing/deprecated_test.py::test_pytest_custom_cfg_deprecated PASSED [ 3%] testing/deprecated_test.py::test_str_args_deprecated FAILED [ 3%] testing/deprecated_test.py::test_getfuncargvalue_is_deprecated PASSED [ 3%] testing/deprecated_test.py::test_resultlog_is_deprecated PASSED [ 3%] testing/deprecated_test.py::test_metafunc_addcall_deprecated FAILED [ 3%] testing/deprecated_test.py::test_terminal_reporter_writer_attr PASSED [ 3%] testing/deprecated_test.py::test_pytest_catchlog_deprecated[catchlog] FAILED [ 3%] testing/deprecated_test.py::test_pytest_catchlog_deprecated[capturelog] FAILED [ 3%] testing/deprecated_test.py::test_pytest_plugins_in_non_top_level_conftest_deprecated FAILED [ 3%] testing/deprecated_test.py::test_pytest_plugins_in_non_top_level_conftest_deprecated_pyargs[True] FAILED [ 3%] testing/deprecated_test.py::test_pytest_plugins_in_non_top_level_conftest_deprecated_pyargs[False] FAILED [ 3%] testing/deprecated_test.py::test_pytest_plugins_in_non_top_level_conftest_deprecated_no_top_level_conftest PASSED [ 3%] testing/deprecated_test.py::test_pytest_plugins_in_non_top_level_conftest_deprecated_no_false_positives PASSED [ 3%] testing/deprecated_test.py::test_call_fixture_function_deprecated PASSED [ 4%] testing/deprecated_test.py::test_pycollector_makeitem_is_deprecated PASSED [ 4%] testing/deprecated_test.py::test_fixture_named_request FAILED [ 4%] testing/test_argcomplete.py::TestArgComplete::test_compare_with_compgen PASSED [ 4%] testing/test_argcomplete.py::TestArgComplete::test_remove_dir_prefix PASSED [ 4%] testing/test_assertion.py::TestImportHookInstallation::test_conftest_assertion_rewrite[plain-True] PASSED [ 4%] testing/test_assertion.py::TestImportHookInstallation::test_conftest_assertion_rewrite[plain-False] PASSED [ 4%] testing/test_assertion.py::TestImportHookInstallation::test_conftest_assertion_rewrite[rewrite-True] PASSED [ 4%] testing/test_assertion.py::TestImportHookInstallation::test_conftest_assertion_rewrite[rewrite-False] PASSED [ 4%] testing/test_assertion.py::TestImportHookInstallation::test_rewrite_assertions_pytester_plugin PASSED [ 4%] testing/test_assertion.py::TestImportHookInstallation::test_pytest_plugins_rewrite[plain] PASSED [ 4%] testing/test_assertion.py::TestImportHookInstallation::test_pytest_plugins_rewrite[rewrite] PASSED [ 4%] testing/test_assertion.py::TestImportHookInstallation::test_pytest_plugins_rewrite_module_names[str] PASSED [ 4%] testing/test_assertion.py::TestImportHookInstallation::test_pytest_plugins_rewrite_module_names[list] PASSED [ 4%] testing/test_assertion.py::TestImportHookInstallation::test_pytest_plugins_rewrite_module_names_correctly PASSED [ 4%] testing/test_assertion.py::TestImportHookInstallation::test_installed_plugin_rewrite[development-plain] PASSED [ 4%] testing/test_assertion.py::TestImportHookInstallation::test_installed_plugin_rewrite[development-rewrite] PASSED [ 4%] testing/test_assertion.py::TestImportHookInstallation::test_installed_plugin_rewrite[installed-plain] PASSED [ 4%] testing/test_assertion.py::TestImportHookInstallation::test_installed_plugin_rewrite[installed-rewrite] PASSED [ 4%] testing/test_assertion.py::TestImportHookInstallation::test_rewrite_ast PASSED [ 4%] testing/test_assertion.py::TestImportHookInstallation::test_register_assert_rewrite_checks_types PASSED [ 4%] testing/test_assertion.py::TestBinReprIntegration::test_pytest_assertrepr_compare_called FAILED [ 4%] testing/test_assertion.py::TestAssert_reprcompare::test_different_types PASSED [ 5%] testing/test_assertion.py::TestAssert_reprcompare::test_summary PASSED [ 5%] testing/test_assertion.py::TestAssert_reprcompare::test_text_diff PASSED [ 5%] testing/test_assertion.py::TestAssert_reprcompare::test_text_skipping PASSED [ 5%] testing/test_assertion.py::TestAssert_reprcompare::test_text_skipping_verbose PASSED [ 5%] testing/test_assertion.py::TestAssert_reprcompare::test_multiline_text_diff PASSED [ 5%] testing/test_assertion.py::TestAssert_reprcompare::test_list PASSED [ 5%] testing/test_assertion.py::TestAssert_reprcompare::test_iterable_full_diff[left0-right0-\n Full diff:\n - [0, 1]\n ? ^\n + [0, 2]\n ? ^\n ] PASSED [ 5%] testing/test_assertion.py::TestAssert_reprcompare::test_iterable_full_diff[left1-right1-\n Full diff:\n - {0: 1}\n ? ^\n + {0: 2}\n ? ^\n ] PASSED [ 5%] testing/test_assertion.py::TestAssert_reprcompare::test_iterable_full_diff[left2-right2-\n Full diff:\n - {0, 1}\n ? ^\n + {0, 2}\n ? ^\n ] PASSED [ 5%] testing/test_assertion.py::TestAssert_reprcompare::test_list_different_lengths PASSED [ 5%] testing/test_assertion.py::TestAssert_reprcompare::test_dict PASSED [ 5%] testing/test_assertion.py::TestAssert_reprcompare::test_dict_omitting PASSED [ 5%] testing/test_assertion.py::TestAssert_reprcompare::test_dict_omitting_with_verbosity_1 PASSED [ 5%] testing/test_assertion.py::TestAssert_reprcompare::test_dict_omitting_with_verbosity_2 PASSED [ 5%] testing/test_assertion.py::TestAssert_reprcompare::test_set PASSED [ 5%] testing/test_assertion.py::TestAssert_reprcompare::test_frozenzet PASSED [ 5%] testing/test_assertion.py::TestAssert_reprcompare::test_Sequence PASSED [ 5%] testing/test_assertion.py::TestAssert_reprcompare::test_list_tuples PASSED [ 5%] testing/test_assertion.py::TestAssert_reprcompare::test_list_bad_repr PASSED [ 5%] testing/test_assertion.py::TestAssert_reprcompare::test_one_repr_empty PASSED [ 5%] testing/test_assertion.py::TestAssert_reprcompare::test_repr_no_exc PASSED [ 5%] testing/test_assertion.py::TestAssert_reprcompare::test_unicode PASSED [ 5%] testing/test_assertion.py::TestAssert_reprcompare::test_nonascii_text PASSED [ 6%] testing/test_assertion.py::TestAssert_reprcompare::test_format_nonascii_explanation PASSED [ 6%] testing/test_assertion.py::TestAssert_reprcompare::test_mojibake PASSED [ 6%] testing/test_assertion.py::TestFormatExplanation::test_special_chars_full FAILED [ 6%] testing/test_assertion.py::TestFormatExplanation::test_fmt_simple PASSED [ 6%] testing/test_assertion.py::TestFormatExplanation::test_fmt_where PASSED [ 6%] testing/test_assertion.py::TestFormatExplanation::test_fmt_and PASSED [ 6%] testing/test_assertion.py::TestFormatExplanation::test_fmt_where_nested PASSED [ 6%] testing/test_assertion.py::TestFormatExplanation::test_fmt_newline PASSED [ 6%] testing/test_assertion.py::TestFormatExplanation::test_fmt_newline_escaped PASSED [ 6%] testing/test_assertion.py::TestFormatExplanation::test_fmt_newline_before_where PASSED [ 6%] testing/test_assertion.py::TestFormatExplanation::test_fmt_multi_newline_before_where PASSED [ 6%] testing/test_assertion.py::TestTruncateExplanation::test_doesnt_truncate_when_input_is_empty_list PASSED [ 6%] testing/test_assertion.py::TestTruncateExplanation::test_doesnt_truncate_at_when_input_is_5_lines_and_LT_max_chars PASSED [ 6%] testing/test_assertion.py::TestTruncateExplanation::test_truncates_at_8_lines_when_given_list_of_empty_strings PASSED [ 6%] testing/test_assertion.py::TestTruncateExplanation::test_truncates_at_8_lines_when_first_8_lines_are_LT_max_chars PASSED [ 6%] testing/test_assertion.py::TestTruncateExplanation::test_truncates_at_8_lines_when_first_8_lines_are_EQ_max_chars PASSED [ 6%] testing/test_assertion.py::TestTruncateExplanation::test_truncates_at_4_lines_when_first_4_lines_are_GT_max_chars PASSED [ 6%] testing/test_assertion.py::TestTruncateExplanation::test_truncates_at_1_line_when_first_line_is_GT_max_chars PASSED [ 6%] testing/test_assertion.py::TestTruncateExplanation::test_full_output_truncated FAILED [ 6%] testing/test_assertion.py::test_python25_compile_issue257 FAILED [ 6%] testing/test_assertion.py::test_rewritten FAILED [ 6%] testing/test_assertion.py::test_reprcompare_notin PASSED [ 7%] testing/test_assertion.py::test_reprcompare_whitespaces PASSED [ 7%] testing/test_assertion.py::test_pytest_assertrepr_compare_integration FAILED [ 7%] testing/test_assertion.py::test_sequence_comparison_uses_repr FAILED [ 7%] testing/test_assertion.py::test_assertrepr_loaded_per_dir FAILED [ 7%] testing/test_assertion.py::test_assertion_options FAILED [ 7%] testing/test_assertion.py::test_triple_quoted_string_issue113 FAILED [ 7%] testing/test_assertion.py::test_traceback_failure FAILED [ 7%] testing/test_assertion.py::test_exception_handling_no_traceback FAILED [ 7%] testing/test_assertion.py::test_warn_missing PASSED [ 7%] testing/test_assertion.py::test_recursion_source_decode FAILED [ 7%] testing/test_assertion.py::test_AssertionError_message FAILED [ 7%] testing/test_assertion.py::test_set_with_unsortable_elements SKIPPED [ 7%] testing/test_assertion.py::test_diff_newline_at_end FAILED [ 7%] testing/test_assertion.py::test_assert_tuple_warning PASSED [ 7%] testing/test_assertion.py::test_assert_indirect_tuple_no_warning PASSED [ 7%] testing/test_assertion.py::test_assert_with_unicode FAILED [ 7%] testing/test_assertion.py::test_raise_unprintable_assertion_error FAILED [ 7%] testing/test_assertion.py::test_raise_assertion_error_raisin_repr FAILED [ 7%] testing/test_assertion.py::test_issue_1944 FAILED [ 7%] testing/test_assertrewrite.py::TestAssertionRewrite::test_place_initial_imports PASSED [ 7%] testing/test_assertrewrite.py::TestAssertionRewrite::test_dont_rewrite PASSED [ 7%] testing/test_assertrewrite.py::TestAssertionRewrite::test_dont_rewrite_plugin PASSED [ 8%] testing/test_assertrewrite.py::TestAssertionRewrite::test_name PASSED [ 8%] testing/test_assertrewrite.py::TestAssertionRewrite::test_assert_already_has_message PASSED [ 8%] testing/test_assertrewrite.py::TestAssertionRewrite::test_assertion_message FAILED [ 8%] testing/test_assertrewrite.py::TestAssertionRewrite::test_assertion_message_multiline FAILED [ 8%] testing/test_assertrewrite.py::TestAssertionRewrite::test_assertion_message_tuple FAILED [ 8%] testing/test_assertrewrite.py::TestAssertionRewrite::test_assertion_message_expr FAILED [ 8%] testing/test_assertrewrite.py::TestAssertionRewrite::test_assertion_message_escape FAILED [ 8%] testing/test_assertrewrite.py::TestAssertionRewrite::test_assertion_messages_bytes FAILED [ 8%] testing/test_assertrewrite.py::TestAssertionRewrite::test_boolop PASSED [ 8%] testing/test_assertrewrite.py::TestAssertionRewrite::test_short_circuit_evaluation PASSED [ 8%] testing/test_assertrewrite.py::TestAssertionRewrite::test_unary_op PASSED [ 8%] testing/test_assertrewrite.py::TestAssertionRewrite::test_binary_op PASSED [ 8%] testing/test_assertrewrite.py::TestAssertionRewrite::test_boolop_percent PASSED [ 8%] testing/test_assertrewrite.py::TestAssertionRewrite::test_at_operator_issue1290 FAILED [ 8%] testing/test_assertrewrite.py::TestAssertionRewrite::test_call PASSED [ 8%] testing/test_assertrewrite.py::TestAssertionRewrite::test_attribute PASSED [ 8%] testing/test_assertrewrite.py::TestAssertionRewrite::test_comparisons PASSED [ 8%] testing/test_assertrewrite.py::TestAssertionRewrite::test_len PASSED [ 8%] testing/test_assertrewrite.py::TestAssertionRewrite::test_custom_reprcompare PASSED [ 8%] testing/test_assertrewrite.py::TestAssertionRewrite::test_assert_raising_nonzero_in_comparison PASSED [ 8%] testing/test_assertrewrite.py::TestAssertionRewrite::test_formatchar PASSED [ 8%] testing/test_assertrewrite.py::TestAssertionRewrite::test_custom_repr PASSED [ 8%] testing/test_assertrewrite.py::TestAssertionRewrite::test_custom_repr_non_ascii PASSED [ 9%] testing/test_assertrewrite.py::TestRewriteOnImport::test_pycache_is_a_file FAILED [ 9%] testing/test_assertrewrite.py::TestRewriteOnImport::test_pycache_is_readonly FAILED [ 9%] testing/test_assertrewrite.py::TestRewriteOnImport::test_zipfile FAILED [ 9%] testing/test_assertrewrite.py::TestRewriteOnImport::test_readonly FAILED [ 9%] testing/test_assertrewrite.py::TestRewriteOnImport::test_dont_write_bytecode PASSED [ 9%] testing/test_assertrewrite.py::TestRewriteOnImport::test_orphaned_pyc_file FAILED [ 9%] testing/test_assertrewrite.py::TestRewriteOnImport::test_pyc_vs_pyo PASSED [ 9%] testing/test_assertrewrite.py::TestRewriteOnImport::test_package FAILED [ 9%] testing/test_assertrewrite.py::TestRewriteOnImport::test_translate_newlines FAILED [ 9%] testing/test_assertrewrite.py::TestRewriteOnImport::test_package_without__init__py FAILED [ 9%] testing/test_assertrewrite.py::TestRewriteOnImport::test_rewrite_warning PASSED [ 9%] testing/test_assertrewrite.py::TestRewriteOnImport::test_rewrite_module_imported_from_conftest PASSED [ 9%] testing/test_assertrewrite.py::TestRewriteOnImport::test_remember_rewritten_modules PASSED [ 9%] testing/test_assertrewrite.py::TestRewriteOnImport::test_rewrite_warning_using_pytest_plugins PASSED [ 9%] testing/test_assertrewrite.py::TestRewriteOnImport::test_rewrite_warning_using_pytest_plugins_env_var PASSED [ 9%] testing/test_assertrewrite.py::TestRewriteOnImport::test_rewrite_future_imports SKIPPED [ 9%] testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::test_loader_is_package_false_for_module FAILED [ 9%] testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::test_loader_is_package_true_for_package FAILED [ 9%] testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::test_assume_ascii SKIPPED [ 9%] testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::test_detect_coding_cookie SKIPPED [ 9%] testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::test_detect_coding_cookie_second_line SKIPPED [ 9%] testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::test_detect_coding_cookie_crlf SKIPPED [ 10%] testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::test_sys_meta_path_munged FAILED [ 10%] testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::test_write_pyc FAILED [ 10%] testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::test_resources_provider_for_loader PASSED [ 10%] testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::test_read_pyc PASSED [ 10%] testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::test_reload_is_same FAILED [ 10%] testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::test_reload_reloads FAILED [ 10%] testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::test_get_data_support FAILED [ 10%] testing/test_assertrewrite.py::test_issue731 PASSED [ 10%] testing/test_assertrewrite.py::TestIssue925::test_simple_case FAILED [ 10%] testing/test_assertrewrite.py::TestIssue925::test_long_case FAILED [ 10%] testing/test_assertrewrite.py::TestIssue925::test_many_brackets FAILED [ 10%] testing/test_assertrewrite.py::TestIssue2121::test_rewrite_python_files_contain_subdirs FAILED [ 10%] testing/test_assertrewrite.py::test_rewrite_infinite_recursion PASSED [ 10%] testing/test_assertrewrite.py::TestEarlyRewriteBailout::test_basic PASSED [ 10%] testing/test_assertrewrite.py::TestEarlyRewriteBailout::test_pattern_contains_subdirectories PASSED [ 10%] testing/test_assertrewrite.py::TestEarlyRewriteBailout::test_cwd_changed FAILED [ 10%] testing/test_cacheprovider.py::TestNewAPI::test_config_cache_makedir FAILED [ 10%] testing/test_cacheprovider.py::TestNewAPI::test_config_cache_dataerror FAILED [ 10%] testing/test_cacheprovider.py::TestNewAPI::test_cache_writefail_cachfile_silent PASSED [ 10%] testing/test_cacheprovider.py::TestNewAPI::test_cache_writefail_permissions FAILED [ 10%] testing/test_cacheprovider.py::TestNewAPI::test_cache_failure_warns PASSED [ 10%] testing/test_cacheprovider.py::TestNewAPI::test_config_cache FAILED [ 11%] testing/test_cacheprovider.py::TestNewAPI::test_cachefuncarg FAILED [ 11%] testing/test_cacheprovider.py::TestNewAPI::test_custom_rel_cache_dir FAILED [ 11%] testing/test_cacheprovider.py::TestNewAPI::test_custom_abs_cache_dir FAILED [ 11%] testing/test_cacheprovider.py::TestNewAPI::test_custom_cache_dir_with_env_var FAILED [ 11%] testing/test_cacheprovider.py::test_cache_reportheader FAILED [ 11%] testing/test_cacheprovider.py::test_cache_reportheader_external_abspath FAILED [ 11%] testing/test_cacheprovider.py::test_cache_show FAILED [ 11%] testing/test_cacheprovider.py::TestLastFailed::test_lastfailed_usecase FAILED [ 11%] testing/test_cacheprovider.py::TestLastFailed::test_failedfirst_order FAILED [ 11%] testing/test_cacheprovider.py::TestLastFailed::test_lastfailed_failedfirst_order FAILED [ 11%] testing/test_cacheprovider.py::TestLastFailed::test_lastfailed_difference_invocations FAILED [ 11%] testing/test_cacheprovider.py::TestLastFailed::test_lastfailed_usecase_splice FAILED [ 11%] testing/test_cacheprovider.py::TestLastFailed::test_lastfailed_xpass FAILED [ 11%] testing/test_cacheprovider.py::TestLastFailed::test_non_serializable_parametrize FAILED [ 11%] testing/test_cacheprovider.py::TestLastFailed::test_terminal_report_lastfailed FAILED [ 11%] testing/test_cacheprovider.py::TestLastFailed::test_terminal_report_failedfirst FAILED [ 11%] testing/test_cacheprovider.py::TestLastFailed::test_lastfailed_collectfailure FAILED [ 11%] testing/test_cacheprovider.py::TestLastFailed::test_lastfailed_failure_subset FAILED [ 11%] testing/test_cacheprovider.py::TestLastFailed::test_lastfailed_creates_cache_when_needed FAILED [ 11%] testing/test_cacheprovider.py::TestLastFailed::test_xfail_not_considered_failure FAILED [ 11%] testing/test_cacheprovider.py::TestLastFailed::test_xfail_strict_considered_failure FAILED [ 11%] testing/test_cacheprovider.py::TestLastFailed::test_failed_changed_to_xfail_or_skip[mark.xfail] FAILED [ 11%] testing/test_cacheprovider.py::TestLastFailed::test_failed_changed_to_xfail_or_skip[mark.skip] FAILED [ 12%] testing/test_cacheprovider.py::TestLastFailed::test_lf_and_ff_prints_no_needless_message[--ff-True] PASSED [ 12%] testing/test_cacheprovider.py::TestLastFailed::test_lf_and_ff_prints_no_needless_message[--ff-False] FAILED [ 12%] testing/test_cacheprovider.py::TestLastFailed::test_lf_and_ff_prints_no_needless_message[--lf-True] PASSED [ 12%] testing/test_cacheprovider.py::TestLastFailed::test_lf_and_ff_prints_no_needless_message[--lf-False] FAILED [ 12%] testing/test_cacheprovider.py::TestLastFailed::test_cache_cumulative FAILED [ 12%] testing/test_cacheprovider.py::TestLastFailed::test_lastfailed_no_failures_behavior_all_passed FAILED [ 12%] testing/test_cacheprovider.py::TestLastFailed::test_lastfailed_no_failures_behavior_empty_cache FAILED [ 12%] testing/test_cacheprovider.py::TestNewFirst::test_newfirst_usecase FAILED [ 12%] testing/test_cacheprovider.py::TestNewFirst::test_newfirst_parametrize FAILED [ 12%] testing/test_cacheprovider.py::TestReadme::test_readme_passed FAILED [ 12%] testing/test_cacheprovider.py::TestReadme::test_readme_failed FAILED [ 12%] testing/test_cacheprovider.py::test_gitignore FAILED [ 12%] testing/test_capture.py::TestCaptureManager::test_getmethod_default_no_fd PASSED [ 12%] testing/test_capture.py::TestCaptureManager::test_capturing_basic_api[no] PASSED [ 12%] testing/test_capture.py::TestCaptureManager::test_capturing_basic_api[sys] PASSED [ 12%] testing/test_capture.py::TestCaptureManager::test_capturing_basic_api[fd] PASSED [ 12%] testing/test_capture.py::TestCaptureManager::test_init_capturing PASSED [ 12%] testing/test_capture.py::test_capturing_unicode[fd] FAILED [ 12%] testing/test_capture.py::test_capturing_unicode[sys] FAILED [ 12%] testing/test_capture.py::test_capturing_bytes_in_utf8_encoding[fd] FAILED [ 12%] testing/test_capture.py::test_capturing_bytes_in_utf8_encoding[sys] FAILED [ 12%] testing/test_capture.py::test_collect_capturing FAILED [ 13%] testing/test_capture.py::TestPerTestCapturing::test_capture_and_fixtures FAILED [ 13%] testing/test_capture.py::TestPerTestCapturing::test_capture_scope_cache xfail [ 13%] testing/test_capture.py::TestPerTestCapturing::test_no_carry_over FAILED [ 13%] testing/test_capture.py::TestPerTestCapturing::test_teardown_capturing FAILED [ 13%] testing/test_capture.py::TestPerTestCapturing::test_teardown_capturing_final FAILED [ 13%] testing/test_capture.py::TestPerTestCapturing::test_capturing_outerr FAILED [ 13%] testing/test_capture.py::TestLoggingInteraction::test_logging_stream_ownership PASSED [ 13%] testing/test_capture.py::TestLoggingInteraction::test_logging_and_immediate_setupteardown PASSED [ 13%] testing/test_capture.py::TestLoggingInteraction::test_logging_and_crossscope_fixtures PASSED [ 13%] testing/test_capture.py::TestLoggingInteraction::test_conftestlogging_is_shown PASSED [ 13%] testing/test_capture.py::TestLoggingInteraction::test_conftestlogging_and_test_logging PASSED [ 13%] testing/test_capture.py::TestCaptureFixture::test_std_functional[opt0] FAILED [ 13%] testing/test_capture.py::TestCaptureFixture::test_std_functional[opt1] FAILED [ 13%] testing/test_capture.py::TestCaptureFixture::test_capsyscapfd FAILED [ 13%] testing/test_capture.py::TestCaptureFixture::test_capturing_getfixturevalue FAILED [ 13%] testing/test_capture.py::TestCaptureFixture::test_capsyscapfdbinary FAILED [ 13%] testing/test_capture.py::TestCaptureFixture::test_capture_is_represented_on_failure_issue128[sys] FAILED [ 13%] testing/test_capture.py::TestCaptureFixture::test_capture_is_represented_on_failure_issue128[fd] FAILED [ 13%] testing/test_capture.py::TestCaptureFixture::test_stdfd_functional FAILED [ 13%] testing/test_capture.py::TestCaptureFixture::test_capfdbinary FAILED [ 13%] testing/test_capture.py::TestCaptureFixture::test_capsysbinary FAILED [ 13%] testing/test_capture.py::TestCaptureFixture::test_capsysbinary_forbidden_in_python2 SKIPPED [ 14%] testing/test_capture.py::TestCaptureFixture::test_partial_setup_failure FAILED [ 14%] testing/test_capture.py::TestCaptureFixture::test_keyboardinterrupt_disables_capturing PASSED [ 14%] testing/test_capture.py::TestCaptureFixture::test_capture_and_logging PASSED [ 14%] testing/test_capture.py::TestCaptureFixture::test_disabled_capture_fixture[True-capsys] PASSED [ 14%] testing/test_capture.py::TestCaptureFixture::test_disabled_capture_fixture[True-capfd] PASSED [ 14%] testing/test_capture.py::TestCaptureFixture::test_disabled_capture_fixture[False-capsys] PASSED [ 14%] testing/test_capture.py::TestCaptureFixture::test_disabled_capture_fixture[False-capfd] PASSED [ 14%] testing/test_capture.py::TestCaptureFixture::test_fixture_use_by_other_fixtures[capsys] PASSED [ 14%] testing/test_capture.py::TestCaptureFixture::test_fixture_use_by_other_fixtures[capfd] PASSED [ 14%] testing/test_capture.py::TestCaptureFixture::test_fixture_use_by_other_fixtures_teardown[capsys] FAILED [ 14%] testing/test_capture.py::TestCaptureFixture::test_fixture_use_by_other_fixtures_teardown[capfd] FAILED [ 14%] testing/test_capture.py::test_setup_failure_does_not_kill_capturing FAILED [ 14%] testing/test_capture.py::test_fdfuncarg_skips_on_no_osdup PASSED [ 14%] testing/test_capture.py::test_capture_conftest_runtest_setup FAILED [ 14%] testing/test_capture.py::test_capture_badoutput_issue412 FAILED [ 14%] testing/test_capture.py::test_capture_early_option_parsing FAILED [ 14%] testing/test_capture.py::test_capture_binary_output FAILED [ 14%] testing/test_capture.py::test_error_during_readouterr PASSED [ 14%] testing/test_capture.py::TestCaptureIO::test_text PASSED [ 14%] testing/test_capture.py::TestCaptureIO::test_unicode_and_str_mixture PASSED [ 14%] testing/test_capture.py::TestCaptureIO::test_write_bytes_to_buffer PASSED [ 14%] testing/test_capture.py::test_bytes_io PASSED [ 14%] testing/test_capture.py::test_dontreadfrominput PASSED [ 15%] testing/test_capture.py::test_dontreadfrominput_buffer_python3 PASSED [ 15%] testing/test_capture.py::test_dontreadfrominput_buffer_python2 SKIPPED [ 15%] testing/test_capture.py::test_dupfile PASSED [ 15%] testing/test_capture.py::test_dupfile_on_bytesio PASSED [ 15%] testing/test_capture.py::test_dupfile_on_textio PASSED [ 15%] testing/test_capture.py::TestFDCapture::test_simple PASSED [ 15%] testing/test_capture.py::TestFDCapture::test_simple_many PASSED [ 15%] testing/test_capture.py::TestFDCapture::test_simple_many_check_open_files SKIPPED [ 15%] testing/test_capture.py::TestFDCapture::test_simple_fail_second_start PASSED [ 15%] testing/test_capture.py::TestFDCapture::test_stderr PASSED [ 15%] testing/test_capture.py::TestFDCapture::test_stdin PASSED [ 15%] testing/test_capture.py::TestFDCapture::test_writeorg PASSED [ 15%] testing/test_capture.py::TestFDCapture::test_simple_resume_suspend PASSED [ 15%] testing/test_capture.py::TestStdCapture::test_capturing_done_simple PASSED [ 15%] testing/test_capture.py::TestStdCapture::test_capturing_reset_simple PASSED [ 15%] testing/test_capture.py::TestStdCapture::test_capturing_readouterr PASSED [ 15%] testing/test_capture.py::TestStdCapture::test_capture_results_accessible_by_attribute PASSED [ 15%] testing/test_capture.py::TestStdCapture::test_capturing_readouterr_unicode PASSED [ 15%] testing/test_capture.py::TestStdCapture::test_capturing_readouterr_decode_error_handling SKIPPED [ 15%] testing/test_capture.py::TestStdCapture::test_reset_twice_error PASSED [ 15%] testing/test_capture.py::TestStdCapture::test_capturing_modify_sysouterr_in_between PASSED [ 15%] testing/test_capture.py::TestStdCapture::test_capturing_error_recursive PASSED [ 16%] testing/test_capture.py::TestStdCapture::test_just_out_capture PASSED [ 16%] testing/test_capture.py::TestStdCapture::test_just_err_capture PASSED [ 16%] testing/test_capture.py::TestStdCapture::test_stdin_restored PASSED [ 16%] testing/test_capture.py::TestStdCapture::test_stdin_nulled_by_default PASSED [ 16%] testing/test_capture.py::TestStdCaptureFD::test_capturing_done_simple PASSED [ 16%] testing/test_capture.py::TestStdCaptureFD::test_capturing_reset_simple PASSED [ 16%] testing/test_capture.py::TestStdCaptureFD::test_capturing_readouterr PASSED [ 16%] testing/test_capture.py::TestStdCaptureFD::test_capture_results_accessible_by_attribute PASSED [ 16%] testing/test_capture.py::TestStdCaptureFD::test_capturing_readouterr_unicode PASSED [ 16%] testing/test_capture.py::TestStdCaptureFD::test_capturing_readouterr_decode_error_handling SKIPPED [ 16%] testing/test_capture.py::TestStdCaptureFD::test_reset_twice_error PASSED [ 16%] testing/test_capture.py::TestStdCaptureFD::test_capturing_modify_sysouterr_in_between PASSED [ 16%] testing/test_capture.py::TestStdCaptureFD::test_capturing_error_recursive PASSED [ 16%] testing/test_capture.py::TestStdCaptureFD::test_just_out_capture PASSED [ 16%] testing/test_capture.py::TestStdCaptureFD::test_just_err_capture PASSED [ 16%] testing/test_capture.py::TestStdCaptureFD::test_stdin_restored PASSED [ 16%] testing/test_capture.py::TestStdCaptureFD::test_stdin_nulled_by_default PASSED [ 16%] testing/test_capture.py::TestStdCaptureFD::test_simple_only_fd PASSED [ 16%] testing/test_capture.py::TestStdCaptureFD::test_intermingling PASSED [ 16%] testing/test_capture.py::TestStdCaptureFD::test_many SKIPPED [ 16%] testing/test_capture.py::TestStdCaptureFDinvalidFD::test_stdcapture_fd_invalid_fd PASSED [ 16%] testing/test_capture.py::test_capture_not_started_but_reset PASSED [ 17%] testing/test_capture.py::test_using_capsys_fixture_works_with_sys_stdout_encoding PASSED [ 17%] testing/test_capture.py::test_capsys_results_accessible_by_attribute PASSED [ 17%] testing/test_capture.py::test_fdcapture_tmpfile_remains_the_same[True] PASSED [ 17%] testing/test_capture.py::test_fdcapture_tmpfile_remains_the_same[False] PASSED [ 17%] testing/test_capture.py::test_close_and_capture_again PASSED [ 17%] testing/test_capture.py::test_capturing_and_logging_fundamentals[SysCapture] PASSED [ 17%] testing/test_capture.py::test_capturing_and_logging_fundamentals[FDCapture] PASSED [ 17%] testing/test_capture.py::test_error_attribute_issue555 FAILED [ 17%] testing/test_capture.py::test_py36_windowsconsoleio_workaround_non_standard_streams SKIPPED [ 17%] testing/test_capture.py::test_dontreadfrominput_has_encoding FAILED [ 17%] testing/test_capture.py::test_crash_on_closing_tmpfile_py27 PASSED [ 17%] testing/test_capture.py::test_pickling_and_unpickling_encoded_file PASSED [ 17%] testing/test_capture.py::test_global_capture_with_live_logging PASSED [ 17%] testing/test_capture.py::test_capture_with_live_logging[capsys] PASSED [ 17%] testing/test_capture.py::test_capture_with_live_logging[capfd] PASSED [ 17%] testing/test_collection.py::TestCollector::test_collect_versus_item PASSED [ 17%] testing/test_collection.py::TestCollector::test_compat_attributes PASSED [ 17%] testing/test_collection.py::TestCollector::test_check_equality FAILED [ 17%] testing/test_collection.py::TestCollector::test_getparent FAILED [ 17%] testing/test_collection.py::TestCollector::test_getcustomfile_roundtrip FAILED [ 17%] testing/test_collection.py::TestCollector::test_can_skip_class_with_test_attr FAILED [ 17%] testing/test_collection.py::TestCollectFS::test_ignored_certain_directories FAILED [ 17%] testing/test_collection.py::TestCollectFS::test_ignored_virtualenvs[activate] FAILED [ 18%] testing/test_collection.py::TestCollectFS::test_ignored_virtualenvs[activate.csh] FAILED [ 18%] testing/test_collection.py::TestCollectFS::test_ignored_virtualenvs[activate.fish] FAILED [ 18%] testing/test_collection.py::TestCollectFS::test_ignored_virtualenvs[Activate] FAILED [ 18%] testing/test_collection.py::TestCollectFS::test_ignored_virtualenvs[Activate.bat] FAILED [ 18%] testing/test_collection.py::TestCollectFS::test_ignored_virtualenvs[Activate.ps1] FAILED [ 18%] testing/test_collection.py::TestCollectFS::test_ignored_virtualenvs_norecursedirs_precedence[activate] FAILED [ 18%] testing/test_collection.py::TestCollectFS::test_ignored_virtualenvs_norecursedirs_precedence[activate.csh] FAILED [ 18%] testing/test_collection.py::TestCollectFS::test_ignored_virtualenvs_norecursedirs_precedence[activate.fish] FAILED [ 18%] testing/test_collection.py::TestCollectFS::test_ignored_virtualenvs_norecursedirs_precedence[Activate] FAILED [ 18%] testing/test_collection.py::TestCollectFS::test_ignored_virtualenvs_norecursedirs_precedence[Activate.bat] FAILED [ 18%] testing/test_collection.py::TestCollectFS::test_ignored_virtualenvs_norecursedirs_precedence[Activate.ps1] FAILED [ 18%] testing/test_collection.py::TestCollectFS::test__in_venv[activate] PASSED [ 18%] testing/test_collection.py::TestCollectFS::test__in_venv[activate.csh] PASSED [ 18%] testing/test_collection.py::TestCollectFS::test__in_venv[activate.fish] PASSED [ 18%] testing/test_collection.py::TestCollectFS::test__in_venv[Activate] PASSED [ 18%] testing/test_collection.py::TestCollectFS::test__in_venv[Activate.bat] PASSED [ 18%] testing/test_collection.py::TestCollectFS::test__in_venv[Activate.ps1] PASSED [ 18%] testing/test_collection.py::TestCollectFS::test_custom_norecursedirs FAILED [ 18%] testing/test_collection.py::TestCollectFS::test_testpaths_ini FAILED [ 18%] testing/test_collection.py::TestCollectPluginHookRelay::test_pytest_collect_file FAILED [ 18%] testing/test_collection.py::TestCollectPluginHookRelay::test_pytest_collect_directory FAILED [ 18%] testing/test_collection.py::TestPrunetraceback::test_custom_repr_failure FAILED [ 19%] testing/test_collection.py::TestPrunetraceback::test_collect_report_postprocessing xfail [ 19%] testing/test_collection.py::TestCustomConftests::test_ignore_collect_path FAILED [ 19%] testing/test_collection.py::TestCustomConftests::test_ignore_collect_not_called_on_argument FAILED [ 19%] testing/test_collection.py::TestCustomConftests::test_collectignore_exclude_on_option FAILED [ 19%] testing/test_collection.py::TestCustomConftests::test_pytest_fs_collect_hooks_are_seen FAILED [ 19%] testing/test_collection.py::TestCustomConftests::test_pytest_collect_file_from_sister_dir FAILED [ 19%] testing/test_collection.py::TestSession::test_parsearg FAILED [ 19%] testing/test_collection.py::TestSession::test_collect_topdir FAILED [ 19%] testing/test_collection.py::TestSession::test_collect_protocol_single_function FAILED [ 19%] testing/test_collection.py::TestSession::test_collect_protocol_method FAILED [ 19%] testing/test_collection.py::TestSession::test_collect_custom_nodes_multi_id FAILED [ 19%] testing/test_collection.py::TestSession::test_collect_subdir_event_ordering FAILED [ 19%] testing/test_collection.py::TestSession::test_collect_two_commandline_args FAILED [ 19%] testing/test_collection.py::TestSession::test_serialization_byid FAILED [ 19%] testing/test_collection.py::TestSession::test_find_byid_without_instance_parents FAILED [ 19%] testing/test_collection.py::Test_getinitialnodes::test_global_file FAILED [ 19%] testing/test_collection.py::Test_getinitialnodes::test_pkgfile FAILED [ 19%] testing/test_collection.py::Test_genitems::test_check_collect_hashes FAILED [ 19%] testing/test_collection.py::Test_genitems::test_example_items1 FAILED [ 19%] testing/test_collection.py::Test_genitems::test_class_and_functions_discovery_using_glob FAILED [ 19%] testing/test_collection.py::test_matchnodes_two_collections_same_file FAILED [ 19%] testing/test_collection.py::TestNodekeywords::test_no_under FAILED [ 20%] testing/test_collection.py::TestNodekeywords::test_issue345 FAILED [ 20%] testing/test_collection.py::test_exit_on_collection_error FAILED [ 20%] testing/test_collection.py::test_exit_on_collection_with_maxfail_smaller_than_n_errors FAILED [ 20%] testing/test_collection.py::test_exit_on_collection_with_maxfail_bigger_than_n_errors FAILED [ 20%] testing/test_collection.py::test_continue_on_collection_errors FAILED [ 20%] testing/test_collection.py::test_continue_on_collection_errors_maxfail FAILED [ 20%] testing/test_collection.py::test_fixture_scope_sibling_conftests FAILED [ 20%] testing/test_collection.py::test_collect_init_tests FAILED [ 20%] testing/test_collection.py::test_collect_invalid_signature_message FAILED [ 20%] testing/test_collection.py::test_collect_handles_raising_on_dunder_class FAILED [ 20%] testing/test_collection.py::test_collect_symlink_file_arg FAILED [ 20%] testing/test_collection.py::test_collect_symlink_out_of_tree FAILED [ 20%] testing/test_compat.py::test_is_generator PASSED [ 20%] testing/test_compat.py::test_real_func_loop_limit PASSED [ 20%] testing/test_compat.py::test_get_real_func PASSED [ 20%] testing/test_compat.py::test_is_generator_asyncio PASSED [ 20%] testing/test_compat.py::test_is_generator_async_syntax FAILED [ 20%] testing/test_compat.py::test_helper_failures PASSED [ 20%] testing/test_compat.py::test_safe_getattr PASSED [ 20%] testing/test_compat.py::test_safe_isclass PASSED [ 20%] testing/test_config.py::TestParseIni::test_getcfg_and_config[pytest-pytest.ini] FAILED [ 20%] testing/test_config.py::TestParseIni::test_getcfg_and_config[tool:pytest-setup.cfg] FAILED [ 20%] testing/test_config.py::TestParseIni::test_getcfg_empty_path PASSED [ 21%] testing/test_config.py::TestParseIni::test_append_parse_args FAILED [ 21%] testing/test_config.py::TestParseIni::test_tox_ini_wrong_version PASSED [ 21%] testing/test_config.py::TestParseIni::test_ini_names[tool:pytest-setup.cfg] FAILED [ 21%] testing/test_config.py::TestParseIni::test_ini_names[pytest-tox.ini] FAILED [ 21%] testing/test_config.py::TestParseIni::test_ini_names[pytest-pytest.ini] FAILED [ 21%] testing/test_config.py::TestParseIni::test_toxini_before_lower_pytestini FAILED [ 21%] testing/test_config.py::TestParseIni::test_confcutdir xfail [ 21%] testing/test_config.py::TestConfigCmdlineParsing::test_parsing_again_fails FAILED [ 21%] testing/test_config.py::TestConfigCmdlineParsing::test_explicitly_specified_config_file_is_loaded FAILED [ 21%] testing/test_config.py::TestConfigCmdlineParsing::test_absolute_win32_path FAILED [ 21%] testing/test_config.py::TestConfigAPI::test_config_trace FAILED [ 21%] testing/test_config.py::TestConfigAPI::test_config_getoption FAILED [ 21%] testing/test_config.py::TestConfigAPI::test_config_getoption_unicode FAILED [ 21%] testing/test_config.py::TestConfigAPI::test_config_getvalueorskip FAILED [ 21%] testing/test_config.py::TestConfigAPI::test_config_getvalueorskip_None FAILED [ 21%] testing/test_config.py::TestConfigAPI::test_getoption FAILED [ 21%] testing/test_config.py::TestConfigAPI::test_getconftest_pathlist FAILED [ 21%] testing/test_config.py::TestConfigAPI::test_addini FAILED [ 21%] testing/test_config.py::TestConfigAPI::test_addini_pathlist FAILED [ 21%] testing/test_config.py::TestConfigAPI::test_addini_args FAILED [ 21%] testing/test_config.py::TestConfigAPI::test_addini_linelist FAILED [ 21%] testing/test_config.py::TestConfigAPI::test_addini_bool[True-True] FAILED [ 22%] testing/test_config.py::TestConfigAPI::test_addini_bool[no-False] FAILED [ 22%] testing/test_config.py::TestConfigAPI::test_addini_bool[no-ini-True] FAILED [ 22%] testing/test_config.py::TestConfigAPI::test_addinivalue_line_existing FAILED [ 22%] testing/test_config.py::TestConfigAPI::test_addinivalue_line_new FAILED [ 22%] testing/test_config.py::TestConfigAPI::test_confcutdir_check_isdir FAILED [ 22%] testing/test_config.py::TestConfigAPI::test_iter_rewritable_modules[names0-expected0] PASSED [ 22%] testing/test_config.py::TestConfigAPI::test_iter_rewritable_modules[names1-expected1] PASSED [ 22%] testing/test_config.py::TestConfigAPI::test_iter_rewritable_modules[names2-expected2] PASSED [ 22%] testing/test_config.py::TestConfigAPI::test_iter_rewritable_modules[names3-expected3] PASSED [ 22%] testing/test_config.py::TestConfigAPI::test_iter_rewritable_modules[names4-expected4] PASSED [ 22%] testing/test_config.py::TestConfigFromdictargs::test_basic_behavior FAILED [ 22%] testing/test_config.py::TestConfigFromdictargs::test_origargs FAILED [ 22%] testing/test_config.py::TestConfigFromdictargs::test_inifilename FAILED [ 22%] testing/test_config.py::test_options_on_small_file_do_not_blow_up FAILED [ 22%] testing/test_config.py::test_preparse_ordering_with_setuptools PASSED [ 22%] testing/test_config.py::test_setuptools_importerror_issue1479 PASSED [ 22%] testing/test_config.py::test_plugin_preparse_prevents_setuptools_loading[True] PASSED [ 22%] testing/test_config.py::test_plugin_preparse_prevents_setuptools_loading[False] PASSED [ 22%] testing/test_config.py::test_disable_plugin_autoload[parse_args0-True] PASSED [ 22%] testing/test_config.py::test_disable_plugin_autoload[parse_args1-False] PASSED [ 22%] testing/test_config.py::test_cmdline_processargs_simple FAILED [ 22%] testing/test_config.py::test_invalid_options_show_extra_information FAILED [ 22%] testing/test_config.py::test_consider_args_after_options_for_rootdir_and_inifile[args0] FAILED [ 23%] testing/test_config.py::test_consider_args_after_options_for_rootdir_and_inifile[args1] FAILED [ 23%] testing/test_config.py::test_consider_args_after_options_for_rootdir_and_inifile[args2] FAILED [ 23%] testing/test_config.py::test_consider_args_after_options_for_rootdir_and_inifile[args3] FAILED [ 23%] testing/test_config.py::test_toolongargs_issue224 FAILED [ 23%] testing/test_config.py::test_config_in_subdirectory_colon_command_line_issue2148 FAILED [ 23%] testing/test_config.py::test_notify_exception FAILED [ 23%] testing/test_config.py::test_load_initial_conftest_last_ordering PASSED [ 23%] testing/test_config.py::test_get_plugin_specs_as_list PASSED [ 23%] testing/test_config.py::test_collect_pytest_prefix_bug_integration FAILED [ 23%] testing/test_config.py::test_collect_pytest_prefix_bug PASSED [ 23%] testing/test_config.py::TestLegacyWarning::test_warn_config PASSED [ 23%] testing/test_config.py::TestLegacyWarning::test_warn_on_test_item_from_request[True] PASSED [ 23%] testing/test_config.py::TestLegacyWarning::test_warn_on_test_item_from_request[False] PASSED [ 23%] testing/test_config.py::TestRootdir::test_simple_noini PASSED [ 23%] testing/test_config.py::TestRootdir::test_with_ini[setup.cfg] PASSED [ 23%] testing/test_config.py::TestRootdir::test_with_ini[tox.ini] PASSED [ 23%] testing/test_config.py::TestRootdir::test_with_ini[pytest.ini] PASSED [ 23%] testing/test_config.py::TestRootdir::test_pytestini_overrides_empty_other[setup.cfg] PASSED [ 23%] testing/test_config.py::TestRootdir::test_pytestini_overrides_empty_other[tox.ini] PASSED [ 23%] testing/test_config.py::TestRootdir::test_setuppy_fallback PASSED [ 23%] testing/test_config.py::TestRootdir::test_nothing PASSED [ 23%] testing/test_config.py::TestRootdir::test_with_specific_inifile PASSED [ 24%] testing/test_config.py::TestOverrideIniArgs::test_override_ini_names[setup.cfg] FAILED [ 24%] testing/test_config.py::TestOverrideIniArgs::test_override_ini_names[tox.ini] FAILED [ 24%] testing/test_config.py::TestOverrideIniArgs::test_override_ini_names[pytest.ini] FAILED [ 24%] testing/test_config.py::TestOverrideIniArgs::test_override_ini_pathlist FAILED [ 24%] testing/test_config.py::TestOverrideIniArgs::test_override_multiple_and_default FAILED [ 24%] testing/test_config.py::TestOverrideIniArgs::test_override_ini_usage_error_bad_style PASSED [ 24%] testing/test_config.py::TestOverrideIniArgs::test_override_ini_handled_asap[True] FAILED [ 24%] testing/test_config.py::TestOverrideIniArgs::test_override_ini_handled_asap[False] FAILED [ 24%] testing/test_config.py::TestOverrideIniArgs::test_with_arg_outside_cwd_without_inifile PASSED [ 24%] testing/test_config.py::TestOverrideIniArgs::test_with_arg_outside_cwd_with_inifile PASSED [ 24%] testing/test_config.py::TestOverrideIniArgs::test_with_non_dir_arg[dirs0] PASSED [ 24%] testing/test_config.py::TestOverrideIniArgs::test_with_non_dir_arg[dirs1] PASSED [ 24%] testing/test_config.py::TestOverrideIniArgs::test_with_non_dir_arg[dirs2] PASSED [ 24%] testing/test_config.py::TestOverrideIniArgs::test_with_existing_file_in_subdir PASSED [ 24%] testing/test_config.py::TestOverrideIniArgs::test_addopts_before_initini FAILED [ 24%] testing/test_config.py::TestOverrideIniArgs::test_override_ini_does_not_contain_paths FAILED [ 24%] testing/test_config.py::TestOverrideIniArgs::test_multiple_override_ini_options FAILED [ 24%] testing/test_conftest.py::TestConftestValueAccessGlobal::test_basic_init[global] PASSED [ 24%] testing/test_conftest.py::TestConftestValueAccessGlobal::test_immediate_initialiation_and_incremental_are_the_same[global] PASSED [ 24%] testing/test_conftest.py::TestConftestValueAccessGlobal::test_value_access_not_existing[global] PASSED [ 24%] testing/test_conftest.py::TestConftestValueAccessGlobal::test_value_access_by_path[global] PASSED [ 24%] testing/test_conftest.py::TestConftestValueAccessGlobal::test_value_access_with_confmod[global] PASSED [ 25%] testing/test_conftest.py::TestConftestValueAccessGlobal::test_basic_init[inpackage] PASSED [ 25%] testing/test_conftest.py::TestConftestValueAccessGlobal::test_immediate_initialiation_and_incremental_are_the_same[inpackage] PASSED [ 25%] testing/test_conftest.py::TestConftestValueAccessGlobal::test_value_access_not_existing[inpackage] PASSED [ 25%] testing/test_conftest.py::TestConftestValueAccessGlobal::test_value_access_by_path[inpackage] PASSED [ 25%] testing/test_conftest.py::TestConftestValueAccessGlobal::test_value_access_with_confmod[inpackage] PASSED [ 25%] testing/test_conftest.py::test_conftest_in_nonpkg_with_init PASSED [ 25%] testing/test_conftest.py::test_doubledash_considered PASSED [ 25%] testing/test_conftest.py::test_issue151_load_all_conftests PASSED [ 25%] testing/test_conftest.py::test_conftest_global_import PASSED [ 25%] testing/test_conftest.py::test_conftestcutdir PASSED [ 25%] testing/test_conftest.py::test_conftestcutdir_inplace_considered PASSED [ 25%] testing/test_conftest.py::test_setinitial_conftest_subdirs[test] PASSED [ 25%] testing/test_conftest.py::test_setinitial_conftest_subdirs[tests] PASSED [ 25%] testing/test_conftest.py::test_setinitial_conftest_subdirs[whatever] PASSED [ 25%] testing/test_conftest.py::test_setinitial_conftest_subdirs[.dotdir] PASSED [ 25%] testing/test_conftest.py::test_conftest_confcutdir FAILED [ 25%] testing/test_conftest.py::test_conftest_symlink FAILED [ 25%] testing/test_conftest.py::test_no_conftest FAILED [ 25%] testing/test_conftest.py::test_conftest_existing_resultlog FAILED [ 25%] testing/test_conftest.py::test_conftest_existing_junitxml FAILED [ 25%] testing/test_conftest.py::test_conftest_import_order PASSED [ 25%] testing/test_conftest.py::test_fixture_dependency FAILED [ 25%] testing/test_conftest.py::test_conftest_found_with_double_dash FAILED [ 26%] testing/test_conftest.py::TestConftestVisibility::test_parsefactories_relative_node_ids[runner-..-3] FAILED [ 26%] testing/test_conftest.py::TestConftestVisibility::test_parsefactories_relative_node_ids[package-..-3] FAILED [ 26%] testing/test_conftest.py::TestConftestVisibility::test_parsefactories_relative_node_ids[swc-../..-3] FAILED [ 26%] testing/test_conftest.py::TestConftestVisibility::test_parsefactories_relative_node_ids[snc-../..-3] FAILED [ 26%] testing/test_conftest.py::TestConftestVisibility::test_parsefactories_relative_node_ids[runner-../package-3] FAILED [ 26%] testing/test_conftest.py::TestConftestVisibility::test_parsefactories_relative_node_ids[package-.-3] FAILED [ 26%] testing/test_conftest.py::TestConftestVisibility::test_parsefactories_relative_node_ids[swc-..-3] FAILED [ 26%] testing/test_conftest.py::TestConftestVisibility::test_parsefactories_relative_node_ids[snc-..-3] FAILED [ 26%] testing/test_conftest.py::TestConftestVisibility::test_parsefactories_relative_node_ids[runner-../package/swc-1] FAILED [ 26%] testing/test_conftest.py::TestConftestVisibility::test_parsefactories_relative_node_ids[package-./swc-1] FAILED [ 26%] testing/test_conftest.py::TestConftestVisibility::test_parsefactories_relative_node_ids[swc-.-1] FAILED [ 26%] testing/test_conftest.py::TestConftestVisibility::test_parsefactories_relative_node_ids[snc-../swc-1] FAILED [ 26%] testing/test_conftest.py::TestConftestVisibility::test_parsefactories_relative_node_ids[runner-../package/snc-1] FAILED [ 26%] testing/test_conftest.py::TestConftestVisibility::test_parsefactories_relative_node_ids[package-./snc-1] FAILED [ 26%] testing/test_conftest.py::TestConftestVisibility::test_parsefactories_relative_node_ids[swc-../snc-1] FAILED [ 26%] testing/test_conftest.py::TestConftestVisibility::test_parsefactories_relative_node_ids[snc-.-1] FAILED [ 26%] testing/test_conftest.py::test_search_conftest_up_to_inifile[.-2-0] FAILED [ 26%] testing/test_conftest.py::test_search_conftest_up_to_inifile[src-1-1] FAILED [ 26%] testing/test_conftest.py::test_search_conftest_up_to_inifile[None-1-1] FAILED [ 26%] testing/test_conftest.py::test_issue1073_conftest_special_objects FAILED [ 26%] testing/test_conftest.py::test_conftest_exception_handling FAILED [ 26%] testing/test_conftest.py::test_hook_proxy FAILED [ 27%] testing/test_conftest.py::test_required_option_help FAILED [ 27%] testing/test_doctest.py::TestDoctests::test_collect_testtextfile FAILED [ 27%] testing/test_doctest.py::TestDoctests::test_collect_module_empty FAILED [ 27%] testing/test_doctest.py::TestDoctests::test_collect_module_single_modulelevel_doctest FAILED [ 27%] testing/test_doctest.py::TestDoctests::test_collect_module_two_doctest_one_modulelevel FAILED [ 27%] testing/test_doctest.py::TestDoctests::test_collect_module_two_doctest_no_modulelevel FAILED [ 27%] testing/test_doctest.py::TestDoctests::test_simple_doctestfile FAILED [ 27%] testing/test_doctest.py::TestDoctests::test_new_pattern FAILED [ 27%] testing/test_doctest.py::TestDoctests::test_multiple_patterns FAILED [ 27%] testing/test_doctest.py::TestDoctests::test_encoding[foo-ascii] FAILED [ 27%] testing/test_doctest.py::TestDoctests::test_encoding[\xf6\xe4\xfc-latin1] FAILED [ 27%] testing/test_doctest.py::TestDoctests::test_encoding[\xf6\xe4\xfc-utf-8] FAILED [ 27%] testing/test_doctest.py::TestDoctests::test_doctest_unexpected_exception FAILED [ 27%] testing/test_doctest.py::TestDoctests::test_docstring_partial_context_around_error FAILED [ 27%] testing/test_doctest.py::TestDoctests::test_docstring_full_context_around_error FAILED [ 27%] testing/test_doctest.py::TestDoctests::test_doctest_linedata_missing FAILED [ 27%] testing/test_doctest.py::TestDoctests::test_doctest_unex_importerror_only_txt FAILED [ 27%] testing/test_doctest.py::TestDoctests::test_doctest_unex_importerror_with_module FAILED [ 27%] testing/test_doctest.py::TestDoctests::test_doctestmodule FAILED [ 27%] testing/test_doctest.py::TestDoctests::test_doctestmodule_external_and_issue116 FAILED [ 27%] testing/test_doctest.py::TestDoctests::test_txtfile_failing FAILED [ 27%] testing/test_doctest.py::TestDoctests::test_txtfile_with_fixtures FAILED [ 28%] testing/test_doctest.py::TestDoctests::test_txtfile_with_usefixtures_in_ini FAILED [ 28%] testing/test_doctest.py::TestDoctests::test_doctestmodule_with_fixtures FAILED [ 28%] testing/test_doctest.py::TestDoctests::test_doctestmodule_three_tests FAILED [ 28%] testing/test_doctest.py::TestDoctests::test_doctestmodule_two_tests_one_fail FAILED [ 28%] testing/test_doctest.py::TestDoctests::test_ignored_whitespace FAILED [ 28%] testing/test_doctest.py::TestDoctests::test_non_ignored_whitespace FAILED [ 28%] testing/test_doctest.py::TestDoctests::test_ignored_whitespace_glob FAILED [ 28%] testing/test_doctest.py::TestDoctests::test_non_ignored_whitespace_glob FAILED [ 28%] testing/test_doctest.py::TestDoctests::test_contains_unicode FAILED [ 28%] testing/test_doctest.py::TestDoctests::test_ignore_import_errors_on_doctest FAILED [ 28%] testing/test_doctest.py::TestDoctests::test_junit_report_for_doctest FAILED [ 28%] testing/test_doctest.py::TestDoctests::test_unicode_doctest FAILED [ 28%] testing/test_doctest.py::TestDoctests::test_unicode_doctest_module FAILED [ 28%] testing/test_doctest.py::TestDoctests::test_print_unicode_value FAILED [ 28%] testing/test_doctest.py::TestDoctests::test_reportinfo FAILED [ 28%] testing/test_doctest.py::TestDoctests::test_valid_setup_py FAILED [ 28%] testing/test_doctest.py::TestDoctests::test_invalid_setup_py FAILED [ 28%] testing/test_doctest.py::TestLiterals::test_allow_unicode[ini] FAILED [ 28%] testing/test_doctest.py::TestLiterals::test_allow_unicode[comment] FAILED [ 28%] testing/test_doctest.py::TestLiterals::test_allow_bytes[ini] FAILED [ 28%] testing/test_doctest.py::TestLiterals::test_allow_bytes[comment] FAILED [ 28%] testing/test_doctest.py::TestLiterals::test_unicode_string FAILED [ 28%] testing/test_doctest.py::TestLiterals::test_bytes_literal FAILED [ 29%] testing/test_doctest.py::TestDoctestSkips::test_one_skipped[text] FAILED [ 29%] testing/test_doctest.py::TestDoctestSkips::test_one_skipped[module] FAILED [ 29%] testing/test_doctest.py::TestDoctestSkips::test_one_skipped_failed[text] FAILED [ 29%] testing/test_doctest.py::TestDoctestSkips::test_one_skipped_failed[module] FAILED [ 29%] testing/test_doctest.py::TestDoctestSkips::test_all_skipped[text] FAILED [ 29%] testing/test_doctest.py::TestDoctestSkips::test_all_skipped[module] FAILED [ 29%] testing/test_doctest.py::TestDoctestSkips::test_vacuous_all_skipped[text] FAILED [ 29%] testing/test_doctest.py::TestDoctestSkips::test_vacuous_all_skipped[module] FAILED [ 29%] testing/test_doctest.py::TestDoctestSkips::test_continue_on_failure FAILED [ 29%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_doctest_module_session_fixture FAILED [ 29%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_fixture_scopes[True-module] FAILED [ 29%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_fixture_scopes[True-session] FAILED [ 29%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_fixture_scopes[True-class] FAILED [ 29%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_fixture_scopes[True-function] FAILED [ 29%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_fixture_scopes[False-module] FAILED [ 29%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_fixture_scopes[False-session] FAILED [ 29%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_fixture_scopes[False-class] FAILED [ 29%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_fixture_scopes[False-function] FAILED [ 29%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_fixture_module_doctest_scopes[True-True-module] FAILED [ 29%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_fixture_module_doctest_scopes[True-True-session] FAILED [ 29%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_fixture_module_doctest_scopes[True-True-class] FAILED [ 29%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_fixture_module_doctest_scopes[True-True-function] FAILED [ 30%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_fixture_module_doctest_scopes[True-False-module] FAILED [ 30%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_fixture_module_doctest_scopes[True-False-session] FAILED [ 30%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_fixture_module_doctest_scopes[True-False-class] FAILED [ 30%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_fixture_module_doctest_scopes[True-False-function] FAILED [ 30%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_fixture_module_doctest_scopes[False-True-module] FAILED [ 30%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_fixture_module_doctest_scopes[False-True-session] FAILED [ 30%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_fixture_module_doctest_scopes[False-True-class] FAILED [ 30%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_fixture_module_doctest_scopes[False-True-function] FAILED [ 30%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_fixture_module_doctest_scopes[False-False-module] FAILED [ 30%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_fixture_module_doctest_scopes[False-False-session] FAILED [ 30%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_fixture_module_doctest_scopes[False-False-class] FAILED [ 30%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_fixture_module_doctest_scopes[False-False-function] FAILED [ 30%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_auto_use_request_attributes[module] FAILED [ 30%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_auto_use_request_attributes[session] FAILED [ 30%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_auto_use_request_attributes[class] FAILED [ 30%] testing/test_doctest.py::TestDoctestAutoUseFixtures::test_auto_use_request_attributes[function] FAILED [ 30%] testing/test_doctest.py::TestDoctestNamespaceFixture::test_namespace_doctestfile[module] FAILED [ 30%] testing/test_doctest.py::TestDoctestNamespaceFixture::test_namespace_doctestfile[session] FAILED [ 30%] testing/test_doctest.py::TestDoctestNamespaceFixture::test_namespace_doctestfile[class] FAILED [ 30%] testing/test_doctest.py::TestDoctestNamespaceFixture::test_namespace_doctestfile[function] FAILED [ 30%] testing/test_doctest.py::TestDoctestNamespaceFixture::test_namespace_pyfile[module] FAILED [ 30%] testing/test_doctest.py::TestDoctestNamespaceFixture::test_namespace_pyfile[session] FAILED [ 31%] testing/test_doctest.py::TestDoctestNamespaceFixture::test_namespace_pyfile[class] FAILED [ 31%] testing/test_doctest.py::TestDoctestNamespaceFixture::test_namespace_pyfile[function] FAILED [ 31%] testing/test_doctest.py::TestDoctestReportingOption::test_doctest_report_udiff[udiff] FAILED [ 31%] testing/test_doctest.py::TestDoctestReportingOption::test_doctest_report_udiff[UDIFF] FAILED [ 31%] testing/test_doctest.py::TestDoctestReportingOption::test_doctest_report_udiff[uDiFf] FAILED [ 31%] testing/test_doctest.py::TestDoctestReportingOption::test_doctest_report_cdiff FAILED [ 31%] testing/test_doctest.py::TestDoctestReportingOption::test_doctest_report_ndiff FAILED [ 31%] testing/test_doctest.py::TestDoctestReportingOption::test_doctest_report_none_or_only_first_failure[none] FAILED [ 31%] testing/test_doctest.py::TestDoctestReportingOption::test_doctest_report_none_or_only_first_failure[only_first_failure] FAILED [ 31%] testing/test_doctest.py::TestDoctestReportingOption::test_doctest_report_invalid PASSED [ 31%] testing/test_entry_points.py::test_entry_point_exist[py.test] PASSED [ 31%] testing/test_entry_points.py::test_entry_point_exist[pytest] PASSED [ 31%] testing/test_entry_points.py::test_pytest_entry_points_are_identical PASSED [ 31%] testing/test_helpconfig.py::test_version FAILED [ 31%] testing/test_helpconfig.py::test_help FAILED [ 31%] testing/test_helpconfig.py::test_hookvalidation_unknown FAILED [ 31%] testing/test_helpconfig.py::test_hookvalidation_optional FAILED [ 31%] testing/test_helpconfig.py::test_traceconfig FAILED [ 31%] testing/test_helpconfig.py::test_debug PASSED [ 31%] testing/test_helpconfig.py::test_PYTEST_DEBUG PASSED [ 31%] testing/test_junitxml.py::TestPython::test_summing_simple FAILED [ 31%] testing/test_junitxml.py::TestPython::test_summing_simple_with_errors FAILED [ 31%] testing/test_junitxml.py::TestPython::test_timing_function FAILED [ 32%] testing/test_junitxml.py::TestPython::test_setup_error FAILED [ 32%] testing/test_junitxml.py::TestPython::test_teardown_error FAILED [ 32%] testing/test_junitxml.py::TestPython::test_call_failure_teardown_error FAILED [ 32%] testing/test_junitxml.py::TestPython::test_skip_contains_name_reason FAILED [ 32%] testing/test_junitxml.py::TestPython::test_mark_skip_contains_name_reason FAILED [ 32%] testing/test_junitxml.py::TestPython::test_mark_skipif_contains_name_reason FAILED [ 32%] testing/test_junitxml.py::TestPython::test_mark_skip_doesnt_capture_output FAILED [ 32%] testing/test_junitxml.py::TestPython::test_classname_instance FAILED [ 32%] testing/test_junitxml.py::TestPython::test_classname_nested_dir FAILED [ 32%] testing/test_junitxml.py::TestPython::test_internal_error FAILED [ 32%] testing/test_junitxml.py::TestPython::test_failure_function[no] FAILED [ 32%] testing/test_junitxml.py::TestPython::test_failure_function[system-out] FAILED [ 32%] testing/test_junitxml.py::TestPython::test_failure_function[system-err] FAILED [ 32%] testing/test_junitxml.py::TestPython::test_failure_verbose_message FAILED [ 32%] testing/test_junitxml.py::TestPython::test_failure_escape FAILED [ 32%] testing/test_junitxml.py::TestPython::test_junit_prefixing FAILED [ 32%] testing/test_junitxml.py::TestPython::test_xfailure_function FAILED [ 32%] testing/test_junitxml.py::TestPython::test_xfail_captures_output_once FAILED [ 32%] testing/test_junitxml.py::TestPython::test_xfailure_xpass FAILED [ 32%] testing/test_junitxml.py::TestPython::test_xfailure_xpass_strict FAILED [ 32%] testing/test_junitxml.py::TestPython::test_collect_error FAILED [ 32%] testing/test_junitxml.py::TestPython::test_unicode FAILED [ 33%] testing/test_junitxml.py::TestPython::test_assertion_binchars FAILED [ 33%] testing/test_junitxml.py::TestPython::test_pass_captures_stdout FAILED [ 33%] testing/test_junitxml.py::TestPython::test_pass_captures_stderr FAILED [ 33%] testing/test_junitxml.py::TestPython::test_setup_error_captures_stdout FAILED [ 33%] testing/test_junitxml.py::TestPython::test_setup_error_captures_stderr FAILED [ 33%] testing/test_junitxml.py::TestPython::test_avoid_double_stdout FAILED [ 33%] testing/test_junitxml.py::test_mangle_test_address PASSED [ 33%] testing/test_junitxml.py::test_dont_configure_on_slaves PASSED [ 33%] testing/test_junitxml.py::TestNonPython::test_summing_simple FAILED [ 33%] testing/test_junitxml.py::test_nullbyte FAILED [ 33%] testing/test_junitxml.py::test_nullbyte_replace FAILED [ 33%] testing/test_junitxml.py::test_invalid_xml_escape PASSED [ 33%] testing/test_junitxml.py::test_logxml_path_expansion PASSED [ 33%] testing/test_junitxml.py::test_logxml_changingdir FAILED [ 33%] testing/test_junitxml.py::test_logxml_makedir FAILED [ 33%] testing/test_junitxml.py::test_logxml_check_isdir PASSED [ 33%] testing/test_junitxml.py::test_escaped_parametrized_names_xml FAILED [ 33%] testing/test_junitxml.py::test_double_colon_split_function_issue469 FAILED [ 33%] testing/test_junitxml.py::test_double_colon_split_method_issue469 FAILED [ 33%] testing/test_junitxml.py::test_unicode_issue368 PASSED [ 33%] testing/test_junitxml.py::test_record_property FAILED [ 33%] testing/test_junitxml.py::test_record_property_same_name FAILED [ 34%] testing/test_junitxml.py::test_record_attribute PASSED [ 34%] testing/test_junitxml.py::test_random_report_log_xdist SKIPPED [ 34%] testing/test_junitxml.py::test_runs_twice FAILED [ 34%] testing/test_junitxml.py::test_runs_twice_xdist xfail [ 34%] testing/test_junitxml.py::test_fancy_items_regression FAILED [ 34%] testing/test_junitxml.py::test_global_properties PASSED [ 34%] testing/test_junitxml.py::test_url_property PASSED [ 34%] testing/test_junitxml.py::test_set_suite_name[my_suite] FAILED [ 34%] testing/test_junitxml.py::test_set_suite_name[] FAILED [ 34%] testing/test_junitxml.py::test_escaped_skipreason_issue3533 FAILED [ 34%] testing/test_mark.py::TestMark::test_markinfo_repr PASSED [ 34%] testing/test_mark.py::TestMark::test_pytest_exists_in_namespace_all[py.test-mark] PASSED [ 34%] testing/test_mark.py::TestMark::test_pytest_exists_in_namespace_all[py.test-param] PASSED [ 34%] testing/test_mark.py::TestMark::test_pytest_exists_in_namespace_all[pytest-mark] PASSED [ 34%] testing/test_mark.py::TestMark::test_pytest_exists_in_namespace_all[pytest-param] PASSED [ 34%] testing/test_mark.py::TestMark::test_pytest_mark_notcallable PASSED [ 34%] testing/test_mark.py::TestMark::test_mark_with_param PASSED [ 34%] testing/test_mark.py::TestMark::test_pytest_mark_name_starts_with_underscore PASSED [ 34%] testing/test_mark.py::TestMark::test_pytest_mark_bare PASSED [ 34%] testing/test_mark.py::TestMark::test_mark_legacy_ignore_fail PASSED [ 34%] testing/test_mark.py::TestMark::test_pytest_mark_keywords PASSED [ 34%] testing/test_mark.py::TestMark::test_apply_multiple_and_merge PASSED [ 34%] testing/test_mark.py::TestMark::test_pytest_mark_positional PASSED [ 35%] testing/test_mark.py::TestMark::test_pytest_mark_positional_func_and_keyword PASSED [ 35%] testing/test_mark.py::TestMark::test_pytest_mark_reuse PASSED [ 35%] testing/test_mark.py::test_marked_class_run_twice FAILED [ 35%] testing/test_mark.py::test_ini_markers FAILED [ 35%] testing/test_mark.py::test_markers_option FAILED [ 35%] testing/test_mark.py::test_ini_markers_whitespace FAILED [ 35%] testing/test_mark.py::test_marker_without_description FAILED [ 35%] testing/test_mark.py::test_markers_option_with_plugin_in_current_dir FAILED [ 35%] testing/test_mark.py::test_mark_on_pseudo_function FAILED [ 35%] testing/test_mark.py::test_strict_prohibits_unregistered_markers FAILED [ 35%] testing/test_mark.py::test_mark_option[spec0] FAILED [ 35%] testing/test_mark.py::test_mark_option[spec1] FAILED [ 35%] testing/test_mark.py::test_mark_option[spec2] FAILED [ 35%] testing/test_mark.py::test_mark_option[spec3] FAILED [ 35%] testing/test_mark.py::test_mark_option_custom[spec0] FAILED [ 35%] testing/test_mark.py::test_mark_option_custom[spec1] FAILED [ 35%] testing/test_mark.py::test_keyword_option_custom[spec0] FAILED [ 35%] testing/test_mark.py::test_keyword_option_custom[spec1] FAILED [ 35%] testing/test_mark.py::test_keyword_option_custom[spec2] FAILED [ 35%] testing/test_mark.py::test_keyword_option_custom[spec3] FAILED [ 35%] testing/test_mark.py::test_keyword_option_parametrize[spec0] FAILED [ 35%] testing/test_mark.py::test_keyword_option_parametrize[spec1] FAILED [ 36%] testing/test_mark.py::test_keyword_option_parametrize[spec2] FAILED [ 36%] testing/test_mark.py::test_keyword_option_wrong_arguments[spec0] FAILED [ 36%] testing/test_mark.py::test_keyword_option_wrong_arguments[spec1] FAILED [ 36%] testing/test_mark.py::test_parametrized_collected_from_command_line FAILED [ 36%] testing/test_mark.py::test_parametrized_collect_with_wrong_args FAILED [ 36%] testing/test_mark.py::test_parametrized_with_kwargs FAILED [ 36%] testing/test_mark.py::TestFunctional::test_mark_per_function FAILED [ 36%] testing/test_mark.py::TestFunctional::test_mark_per_module FAILED [ 36%] testing/test_mark.py::TestFunctional::test_marklist_per_class FAILED [ 36%] testing/test_mark.py::TestFunctional::test_marklist_per_module FAILED [ 36%] testing/test_mark.py::TestFunctional::test_mark_per_class_decorator FAILED [ 36%] testing/test_mark.py::TestFunctional::test_mark_per_class_decorator_plus_existing_dec FAILED [ 36%] testing/test_mark.py::TestFunctional::test_merging_markers FAILED [ 36%] testing/test_mark.py::TestFunctional::test_merging_markers_deep FAILED [ 36%] testing/test_mark.py::TestFunctional::test_mark_decorator_subclass_does_not_propagate_to_base FAILED [ 36%] testing/test_mark.py::TestFunctional::test_mark_should_not_pass_to_siebling_class FAILED [ 36%] testing/test_mark.py::TestFunctional::test_mark_decorator_baseclasses_merged FAILED [ 36%] testing/test_mark.py::TestFunctional::test_mark_closest FAILED [ 36%] testing/test_mark.py::TestFunctional::test_mark_with_wrong_marker FAILED [ 36%] testing/test_mark.py::TestFunctional::test_mark_dynamically_in_funcarg FAILED [ 36%] testing/test_mark.py::TestFunctional::test_merging_markers_two_functions FAILED [ 36%] testing/test_mark.py::TestFunctional::test_no_marker_match_on_unmarked_names FAILED [ 37%] testing/test_mark.py::TestFunctional::test_invalid_m_option FAILED [ 37%] testing/test_mark.py::TestFunctional::test_keywords_at_node_level FAILED [ 37%] testing/test_mark.py::TestFunctional::test_keyword_added_for_session FAILED [ 37%] testing/test_mark.py::TestFunctional::test_mark_from_parameters PASSED [ 37%] testing/test_mark.py::TestKeywordSelection::test_select_simple FAILED [ 37%] testing/test_mark.py::TestKeywordSelection::test_select_extra_keywords[xxx] FAILED [ 37%] testing/test_mark.py::TestKeywordSelection::test_select_extra_keywords[xxx and test_2] FAILED [ 37%] testing/test_mark.py::TestKeywordSelection::test_select_extra_keywords[TestClass] FAILED [ 37%] testing/test_mark.py::TestKeywordSelection::test_select_extra_keywords[xxx and not test_1] FAILED [ 37%] testing/test_mark.py::TestKeywordSelection::test_select_extra_keywords[TestClass and test_2] FAILED [ 37%] testing/test_mark.py::TestKeywordSelection::test_select_extra_keywords[xxx and TestClass and test_2] FAILED [ 37%] testing/test_mark.py::TestKeywordSelection::test_select_starton FAILED [ 37%] testing/test_mark.py::TestKeywordSelection::test_keyword_extra FAILED [ 37%] testing/test_mark.py::TestKeywordSelection::test_keyword_extra_dash xfail [ 37%] testing/test_mark.py::TestKeywordSelection::test_no_magic_values FAILED [ 37%] testing/test_mark.py::test_parameterset_extractfrom[argval0-expected0] PASSED [ 37%] testing/test_mark.py::test_parameterset_extractfrom[argval1-expected1] PASSED [ 37%] testing/test_mark.py::test_legacy_transfer PASSED [ 37%] testing/test_mark.py::TestMarkDecorator::test__eq__[lhs0-rhs0-True] PASSED [ 37%] testing/test_mark.py::TestMarkDecorator::test__eq__[lhs1-rhs1-False] PASSED [ 37%] testing/test_mark.py::TestMarkDecorator::test__eq__[lhs2-bar-False] PASSED [ 37%] testing/test_mark.py::TestMarkDecorator::test__eq__[foo-rhs3-False] PASSED [ 37%] testing/test_mark.py::test_parameterset_for_parametrize_marks[None] FAILED [ 38%] testing/test_mark.py::test_parameterset_for_parametrize_marks[] FAILED [ 38%] testing/test_mark.py::test_parameterset_for_parametrize_marks[skip] FAILED [ 38%] testing/test_mark.py::test_parameterset_for_parametrize_marks[xfail] FAILED [ 38%] testing/test_mark.py::test_parameterset_for_fail_at_collect FAILED [ 38%] testing/test_mark.py::test_parameterset_for_parametrize_bad_markname FAILED [ 38%] testing/test_mark.py::test_mark_expressions_no_smear FAILED [ 38%] testing/test_mark.py::test_addmarker_getmarker PASSED [ 38%] testing/test_mark.py::test_addmarker_order PASSED [ 38%] testing/test_mark.py::test_markers_from_parametrize PASSED [ 38%] testing/test_modimport.py::test_fileimport[_py2traceback] PASSED [ 38%] testing/test_modimport.py::test_fileimport[code] PASSED [ 38%] testing/test_modimport.py::test_fileimport[source] PASSED [ 38%] testing/test_modimport.py::test_fileimport[rewrite] PASSED [ 38%] testing/test_modimport.py::test_fileimport[util] PASSED [ 38%] testing/test_modimport.py::test_fileimport[truncate] PASSED [ 38%] testing/test_modimport.py::test_fileimport[structures] PASSED [ 38%] testing/test_modimport.py::test_fileimport[evaluate] PASSED [ 38%] testing/test_modimport.py::test_fileimport[legacy] PASSED [ 38%] testing/test_modimport.py::test_fileimport[exceptions] PASSED [ 38%] testing/test_modimport.py::test_fileimport[argparsing] PASSED [ 38%] testing/test_modimport.py::test_fileimport[findpaths] PASSED [ 38%] testing/test_modimport.py::test_fileimport[cacheprovider] PASSED [ 39%] testing/test_modimport.py::test_fileimport[recwarn] PASSED [ 39%] testing/test_modimport.py::test_fileimport[deprecated] PASSED [ 39%] testing/test_modimport.py::test_fileimport[warning_types] PASSED [ 39%] testing/test_modimport.py::test_fileimport[main] PASSED [ 39%] testing/test_modimport.py::test_fileimport[junitxml] PASSED [ 39%] testing/test_modimport.py::test_fileimport[compat] PASSED [ 39%] testing/test_modimport.py::test_fileimport[warnings] PASSED [ 39%] testing/test_modimport.py::test_fileimport[python_api] PASSED [ 39%] testing/test_modimport.py::test_fileimport[debugging] PASSED [ 39%] testing/test_modimport.py::test_fileimport[outcomes] PASSED [ 39%] testing/test_modimport.py::test_fileimport[pathlib] PASSED [ 39%] testing/test_modimport.py::test_fileimport[stepwise] PASSED [ 39%] testing/test_modimport.py::test_fileimport[doctest] PASSED [ 39%] testing/test_modimport.py::test_fileimport[_version] PASSED [ 39%] testing/test_modimport.py::test_fileimport[hookspec] PASSED [ 39%] testing/test_modimport.py::test_fileimport[tmpdir] PASSED [ 39%] testing/test_modimport.py::test_fileimport[helpconfig] PASSED [ 39%] testing/test_modimport.py::test_fileimport[python] PASSED [ 39%] testing/test_modimport.py::test_fileimport[setuponly] PASSED [ 39%] testing/test_modimport.py::test_fileimport[monkeypatch] PASSED [ 39%] testing/test_modimport.py::test_fileimport[reports] PASSED [ 39%] testing/test_modimport.py::test_fileimport[terminal] PASSED [ 40%] testing/test_modimport.py::test_fileimport[fixtures] PASSED [ 40%] testing/test_modimport.py::test_fileimport[unittest] PASSED [ 40%] testing/test_modimport.py::test_fileimport[runner] PASSED [ 40%] testing/test_modimport.py::test_fileimport[nose] PASSED [ 40%] testing/test_modimport.py::test_fileimport[pastebin] PASSED [ 40%] testing/test_modimport.py::test_fileimport[skipping] PASSED [ 40%] testing/test_modimport.py::test_fileimport[freeze_support] PASSED [ 40%] testing/test_modimport.py::test_fileimport[nodes] PASSED [ 40%] testing/test_modimport.py::test_fileimport[logging] PASSED [ 40%] testing/test_modimport.py::test_fileimport[setupplan] PASSED [ 40%] testing/test_modimport.py::test_fileimport[capture] PASSED [ 40%] testing/test_modimport.py::test_fileimport[pytester] PASSED [ 40%] testing/test_modimport.py::test_fileimport[_argcomplete] PASSED [ 40%] testing/test_modimport.py::test_fileimport[resultlog] PASSED [ 40%] testing/test_monkeypatch.py::test_setattr PASSED [ 40%] testing/test_monkeypatch.py::TestSetattrWithImportPath::test_string_expression PASSED [ 40%] testing/test_monkeypatch.py::TestSetattrWithImportPath::test_string_expression_class PASSED [ 40%] testing/test_monkeypatch.py::TestSetattrWithImportPath::test_unicode_string PASSED [ 40%] testing/test_monkeypatch.py::TestSetattrWithImportPath::test_wrong_target PASSED [ 40%] testing/test_monkeypatch.py::TestSetattrWithImportPath::test_unknown_import PASSED [ 40%] testing/test_monkeypatch.py::TestSetattrWithImportPath::test_unknown_attr PASSED [ 40%] testing/test_monkeypatch.py::TestSetattrWithImportPath::test_unknown_attr_non_raising PASSED [ 40%] testing/test_monkeypatch.py::TestSetattrWithImportPath::test_delattr PASSED [ 41%] testing/test_monkeypatch.py::test_delattr PASSED [ 41%] testing/test_monkeypatch.py::test_setitem PASSED [ 41%] testing/test_monkeypatch.py::test_setitem_deleted_meanwhile PASSED [ 41%] testing/test_monkeypatch.py::test_setenv_deleted_meanwhile[True] PASSED [ 41%] testing/test_monkeypatch.py::test_setenv_deleted_meanwhile[False] PASSED [ 41%] testing/test_monkeypatch.py::test_delitem PASSED [ 41%] testing/test_monkeypatch.py::test_setenv PASSED [ 41%] testing/test_monkeypatch.py::test_delenv PASSED [ 41%] testing/test_monkeypatch.py::TestEnvironWarnings::test_setenv_unicode_key SKIPPED [ 41%] testing/test_monkeypatch.py::TestEnvironWarnings::test_delenv_unicode_key SKIPPED [ 41%] testing/test_monkeypatch.py::TestEnvironWarnings::test_setenv_non_str_warning PASSED [ 41%] testing/test_monkeypatch.py::test_setenv_prepend PASSED [ 41%] testing/test_monkeypatch.py::test_monkeypatch_plugin FAILED [ 41%] testing/test_monkeypatch.py::test_syspath_prepend PASSED [ 41%] testing/test_monkeypatch.py::test_syspath_prepend_double_undo PASSED [ 41%] testing/test_monkeypatch.py::test_chdir_with_path_local PASSED [ 41%] testing/test_monkeypatch.py::test_chdir_with_str PASSED [ 41%] testing/test_monkeypatch.py::test_chdir_undo PASSED [ 41%] testing/test_monkeypatch.py::test_chdir_double_undo PASSED [ 41%] testing/test_monkeypatch.py::test_issue185_time_breaks FAILED [ 41%] testing/test_monkeypatch.py::test_importerror FAILED [ 41%] testing/test_monkeypatch.py::test_issue156_undo_staticmethod[new] PASSED [ 42%] testing/test_monkeypatch.py::test_issue156_undo_staticmethod[new-inherit] PASSED [ 42%] testing/test_monkeypatch.py::test_issue156_undo_staticmethod[old] PASSED [ 42%] testing/test_monkeypatch.py::test_issue156_undo_staticmethod[old-inherit] PASSED [ 42%] testing/test_monkeypatch.py::test_issue1338_name_resolving PASSED [ 42%] testing/test_monkeypatch.py::test_context PASSED [ 42%] testing/test_nodes.py::test_ischildnode[--True] PASSED [ 42%] testing/test_nodes.py::test_ischildnode[-foo-True] PASSED [ 42%] testing/test_nodes.py::test_ischildnode[-foo/bar-True] PASSED [ 42%] testing/test_nodes.py::test_ischildnode[-foo/bar::TestBaz-True] PASSED [ 42%] testing/test_nodes.py::test_ischildnode[foo-food-False] PASSED [ 42%] testing/test_nodes.py::test_ischildnode[foo/bar::TestBaz-foo/bar-False] PASSED [ 42%] testing/test_nodes.py::test_ischildnode[foo/bar::TestBaz-foo/bar::TestBop-False] PASSED [ 42%] testing/test_nodes.py::test_ischildnode[foo/bar-foo/bar::TestBop-True] PASSED [ 42%] testing/test_nodes.py::test_std_warn_not_pytestwarning FAILED [ 42%] testing/test_nodes.py::test__check_initialpaths_for_relpath PASSED [ 42%] testing/test_nose.py::test_nose_setup FAILED [ 42%] testing/test_nose.py::test_setup_func_with_setup_decorator PASSED [ 42%] testing/test_nose.py::test_setup_func_not_callable PASSED [ 42%] testing/test_nose.py::test_nose_setup_func FAILED [ 42%] testing/test_nose.py::test_nose_setup_func_failure FAILED [ 42%] testing/test_nose.py::test_nose_setup_func_failure_2 FAILED [ 42%] testing/test_nose.py::test_nose_setup_partial FAILED [ 42%] testing/test_nose.py::test_nose_test_generator_fixtures FAILED [ 43%] testing/test_nose.py::test_module_level_setup FAILED [ 43%] testing/test_nose.py::test_nose_style_setup_teardown FAILED [ 43%] testing/test_nose.py::test_nose_setup_ordering FAILED [ 43%] testing/test_nose.py::test_apiwrapper_problem_issue260 FAILED [ 43%] testing/test_nose.py::test_setup_teardown_linking_issue265 FAILED [ 43%] testing/test_nose.py::test_SkipTest_during_collection FAILED [ 43%] testing/test_nose.py::test_SkipTest_in_test FAILED [ 43%] testing/test_nose.py::test_istest_function_decorator FAILED [ 43%] testing/test_nose.py::test_nottest_function_decorator FAILED [ 43%] testing/test_nose.py::test_istest_class_decorator FAILED [ 43%] testing/test_nose.py::test_nottest_class_decorator FAILED [ 43%] testing/test_parseopt.py::TestParser::test_no_help_by_default PASSED [ 43%] testing/test_parseopt.py::TestParser::test_argument PASSED [ 43%] testing/test_parseopt.py::TestParser::test_argument_type PASSED [ 43%] testing/test_parseopt.py::TestParser::test_argument_processopt PASSED [ 43%] testing/test_parseopt.py::TestParser::test_group_add_and_get PASSED [ 43%] testing/test_parseopt.py::TestParser::test_getgroup_simple PASSED [ 43%] testing/test_parseopt.py::TestParser::test_group_ordering PASSED [ 43%] testing/test_parseopt.py::TestParser::test_group_addoption PASSED [ 43%] testing/test_parseopt.py::TestParser::test_group_addoption_conflict PASSED [ 43%] testing/test_parseopt.py::TestParser::test_group_shortopt_lowercase PASSED [ 43%] testing/test_parseopt.py::TestParser::test_parser_addoption PASSED [ 44%] testing/test_parseopt.py::TestParser::test_parse PASSED [ 44%] testing/test_parseopt.py::TestParser::test_parse2 PASSED [ 44%] testing/test_parseopt.py::TestParser::test_parse_known_args PASSED [ 44%] testing/test_parseopt.py::TestParser::test_parse_known_and_unknown_args PASSED [ 44%] testing/test_parseopt.py::TestParser::test_parse_will_set_default PASSED [ 44%] testing/test_parseopt.py::TestParser::test_parse_setoption PASSED [ 44%] testing/test_parseopt.py::TestParser::test_parse_special_destination PASSED [ 44%] testing/test_parseopt.py::TestParser::test_parse_split_positional_arguments PASSED [ 44%] testing/test_parseopt.py::TestParser::test_parse_defaultgetter PASSED [ 44%] testing/test_parseopt.py::TestParser::test_drop_short_helper PASSED [ 44%] testing/test_parseopt.py::TestParser::test_drop_short_0 PASSED [ 44%] testing/test_parseopt.py::TestParser::test_drop_short_2 PASSED [ 44%] testing/test_parseopt.py::TestParser::test_drop_short_3 PASSED [ 44%] testing/test_parseopt.py::TestParser::test_drop_short_help0 PASSED [ 44%] testing/test_parseopt.py::TestParser::test_drop_short_help1 PASSED [ 44%] testing/test_parseopt.py::TestParser::test_multiple_metavar_help PASSED [ 44%] testing/test_parseopt.py::test_argcomplete SKIPPED [ 44%] testing/test_pastebin.py::TestPasteCapture::test_failed FAILED [ 44%] testing/test_pastebin.py::TestPasteCapture::test_all FAILED [ 44%] testing/test_pastebin.py::TestPasteCapture::test_non_ascii_paste_text FAILED [ 44%] testing/test_pastebin.py::TestPaste::test_create_new_paste PASSED [ 44%] testing/test_pathlib.py::TestPort::test_matching[pathlib-*.py-foo.py] PASSED [ 45%] testing/test_pathlib.py::TestPort::test_matching[pathlib-*.py-bar/foo.py] PASSED [ 45%] testing/test_pathlib.py::TestPort::test_matching[pathlib-test_*.py-foo/test_foo.py] PASSED [ 45%] testing/test_pathlib.py::TestPort::test_matching[pathlib-tests/*.py-tests/foo.py] PASSED [ 45%] testing/test_pathlib.py::TestPort::test_matching[pathlib-/c/*.py-/c/foo.py] PASSED [ 45%] testing/test_pathlib.py::TestPort::test_matching[pathlib-/c/foo/*.py-/c/foo/foo.py] PASSED [ 45%] testing/test_pathlib.py::TestPort::test_matching[pathlib-tests/**/test*.py-tests/foo/test_foo.py] PASSED [ 45%] testing/test_pathlib.py::TestPort::test_matching[pathlib-tests/**/doc/test*.py-tests/foo/bar/doc/test_foo.py] PASSED [ 45%] testing/test_pathlib.py::TestPort::test_matching[pathlib-tests/**/doc/**/test*.py-tests/foo/doc/bar/test_foo.py] PASSED [ 45%] testing/test_pathlib.py::TestPort::test_matching[py.path-*.py-foo.py] PASSED [ 45%] testing/test_pathlib.py::TestPort::test_matching[py.path-*.py-bar/foo.py] PASSED [ 45%] testing/test_pathlib.py::TestPort::test_matching[py.path-test_*.py-foo/test_foo.py] PASSED [ 45%] testing/test_pathlib.py::TestPort::test_matching[py.path-tests/*.py-tests/foo.py] PASSED [ 45%] testing/test_pathlib.py::TestPort::test_matching[py.path-/c/*.py-/c/foo.py] PASSED [ 45%] testing/test_pathlib.py::TestPort::test_matching[py.path-/c/foo/*.py-/c/foo/foo.py] PASSED [ 45%] testing/test_pathlib.py::TestPort::test_matching[py.path-tests/**/test*.py-tests/foo/test_foo.py] PASSED [ 45%] testing/test_pathlib.py::TestPort::test_matching[py.path-tests/**/doc/test*.py-tests/foo/bar/doc/test_foo.py] PASSED [ 45%] testing/test_pathlib.py::TestPort::test_matching[py.path-tests/**/doc/**/test*.py-tests/foo/doc/bar/test_foo.py] PASSED [ 45%] testing/test_pathlib.py::TestPort::test_not_matching[pathlib-*.py-foo.pyc] PASSED [ 45%] testing/test_pathlib.py::TestPort::test_not_matching[pathlib-*.py-foo/foo.pyc] PASSED [ 45%] testing/test_pathlib.py::TestPort::test_not_matching[pathlib-tests/*.py-foo/foo.py] PASSED [ 45%] testing/test_pathlib.py::TestPort::test_not_matching[pathlib-/c/*.py-/d/foo.py] PASSED [ 45%] testing/test_pathlib.py::TestPort::test_not_matching[pathlib-/c/foo/*.py-/d/foo/foo.py] PASSED [ 45%] testing/test_pathlib.py::TestPort::test_not_matching[pathlib-tests/**/test*.py-tests/foo.py] PASSED [ 46%] testing/test_pathlib.py::TestPort::test_not_matching[pathlib-tests/**/test*.py-foo/test_foo.py] PASSED [ 46%] testing/test_pathlib.py::TestPort::test_not_matching[pathlib-tests/**/doc/test*.py-tests/foo/bar/doc/foo.py] PASSED [ 46%] testing/test_pathlib.py::TestPort::test_not_matching[pathlib-tests/**/doc/test*.py-tests/foo/bar/test_foo.py] PASSED [ 46%] testing/test_pathlib.py::TestPort::test_not_matching[py.path-*.py-foo.pyc] PASSED [ 46%] testing/test_pathlib.py::TestPort::test_not_matching[py.path-*.py-foo/foo.pyc] PASSED [ 46%] testing/test_pathlib.py::TestPort::test_not_matching[py.path-tests/*.py-foo/foo.py] PASSED [ 46%] testing/test_pathlib.py::TestPort::test_not_matching[py.path-/c/*.py-/d/foo.py] PASSED [ 46%] testing/test_pathlib.py::TestPort::test_not_matching[py.path-/c/foo/*.py-/d/foo/foo.py] PASSED [ 46%] testing/test_pathlib.py::TestPort::test_not_matching[py.path-tests/**/test*.py-tests/foo.py] PASSED [ 46%] testing/test_pathlib.py::TestPort::test_not_matching[py.path-tests/**/test*.py-foo/test_foo.py] PASSED [ 46%] testing/test_pathlib.py::TestPort::test_not_matching[py.path-tests/**/doc/test*.py-tests/foo/bar/doc/foo.py] PASSED [ 46%] testing/test_pathlib.py::TestPort::test_not_matching[py.path-tests/**/doc/test*.py-tests/foo/bar/test_foo.py] PASSED [ 46%] testing/test_pathlib.py::test_access_denied_during_cleanup PASSED [ 46%] testing/test_pluginmanager.py::TestPytestPluginInteractions::test_addhooks_conftestplugin PASSED [ 46%] testing/test_pluginmanager.py::TestPytestPluginInteractions::test_addhooks_nohooks FAILED [ 46%] testing/test_pluginmanager.py::TestPytestPluginInteractions::test_namespace_early_from_import PASSED [ 46%] testing/test_pluginmanager.py::TestPytestPluginInteractions::test_do_ext_namespace FAILED [ 46%] testing/test_pluginmanager.py::TestPytestPluginInteractions::test_do_option_postinitialize FAILED [ 46%] testing/test_pluginmanager.py::TestPytestPluginInteractions::test_configure FAILED [ 46%] testing/test_pluginmanager.py::TestPytestPluginInteractions::test_hook_tracing PASSED [ 46%] testing/test_pluginmanager.py::TestPytestPluginInteractions::test_hook_proxy FAILED [ 46%] testing/test_pluginmanager.py::TestPytestPluginInteractions::test_warn_on_deprecated_addhooks PASSED [ 47%] testing/test_pluginmanager.py::test_namespace_has_default_and_env_plugins PASSED [ 47%] testing/test_pluginmanager.py::test_default_markers FAILED [ 47%] testing/test_pluginmanager.py::test_importplugin_error_message PASSED [ 47%] testing/test_pluginmanager.py::TestPytestPluginManager::test_register_imported_modules PASSED [ 47%] testing/test_pluginmanager.py::TestPytestPluginManager::test_canonical_import PASSED [ 47%] testing/test_pluginmanager.py::TestPytestPluginManager::test_consider_module PASSED [ 47%] testing/test_pluginmanager.py::TestPytestPluginManager::test_consider_module_import_module PASSED [ 47%] testing/test_pluginmanager.py::TestPytestPluginManager::test_consider_env_fails_to_import PASSED [ 47%] testing/test_pluginmanager.py::TestPytestPluginManager::test_plugin_skip FAILED [ 47%] testing/test_pluginmanager.py::TestPytestPluginManager::test_consider_env_plugin_instantiation PASSED [ 47%] testing/test_pluginmanager.py::TestPytestPluginManager::test_pluginmanager_ENV_startup FAILED [ 47%] testing/test_pluginmanager.py::TestPytestPluginManager::test_import_plugin_importname PASSED [ 47%] testing/test_pluginmanager.py::TestPytestPluginManager::test_import_plugin_dotted_name PASSED [ 47%] testing/test_pluginmanager.py::TestPytestPluginManager::test_consider_conftest_deps PASSED [ 47%] testing/test_pluginmanager.py::TestPytestPluginManagerBootstrapming::test_preparse_args PASSED [ 47%] testing/test_pluginmanager.py::TestPytestPluginManagerBootstrapming::test_plugin_prevent_register PASSED [ 47%] testing/test_pluginmanager.py::TestPytestPluginManagerBootstrapming::test_plugin_prevent_register_unregistered_alredy_registered PASSED [ 47%] testing/test_pluginmanager.py::TestPytestPluginManagerBootstrapming::test_plugin_prevent_register_stepwise_on_cacheprovider_unregister PASSED [ 47%] testing/test_pytester.py::test_make_hook_recorder FAILED [ 47%] testing/test_pytester.py::test_parseconfig FAILED [ 47%] testing/test_pytester.py::test_testdir_runs_with_plugin FAILED [ 47%] testing/test_pytester.py::test_runresult_assertion_on_xfail FAILED [ 48%] testing/test_pytester.py::test_runresult_assertion_on_xpassed FAILED [ 48%] testing/test_pytester.py::test_xpassed_with_strict_is_considered_a_failure FAILED [ 48%] testing/test_pytester.py::test_hookrecorder_basic[apiclass] PASSED [ 48%] testing/test_pytester.py::test_hookrecorder_basic[holder1] PASSED [ 48%] testing/test_pytester.py::test_makepyfile_unicode PASSED [ 48%] testing/test_pytester.py::test_makepyfile_utf8 PASSED [ 48%] testing/test_pytester.py::TestInlineRunModulesCleanup::test_inline_run_test_module_not_cleaned_up FAILED [ 48%] testing/test_pytester.py::TestInlineRunModulesCleanup::test_inline_run_taking_and_restoring_a_sys_modules_snapshot FAILED [ 48%] testing/test_pytester.py::TestInlineRunModulesCleanup::test_inline_run_sys_modules_snapshot_restore_preserving_modules FAILED [ 48%] testing/test_pytester.py::TestInlineRunModulesCleanup::test_external_test_module_imports_not_cleaned_up FAILED [ 48%] testing/test_pytester.py::test_assert_outcomes_after_pytest_error PASSED [ 48%] testing/test_pytester.py::test_cwd_snapshot PASSED [ 48%] testing/test_pytester.py::TestSysModulesSnapshot::test_remove_added PASSED [ 48%] testing/test_pytester.py::TestSysModulesSnapshot::test_add_removed PASSED [ 48%] testing/test_pytester.py::TestSysModulesSnapshot::test_restore_reloaded PASSED [ 48%] testing/test_pytester.py::TestSysModulesSnapshot::test_preserve_modules PASSED [ 48%] testing/test_pytester.py::TestSysModulesSnapshot::test_preserve_container PASSED [ 48%] testing/test_pytester.py::TestSysPathsSnapshot::test_restore[path] PASSED [ 48%] testing/test_pytester.py::TestSysPathsSnapshot::test_restore[meta_path] PASSED [ 48%] testing/test_pytester.py::TestSysPathsSnapshot::test_preserve_container[path] PASSED [ 48%] testing/test_pytester.py::TestSysPathsSnapshot::test_preserve_container[meta_path] PASSED [ 48%] testing/test_pytester.py::test_testdir_subprocess PASSED [ 48%] testing/test_pytester.py::test_unicode_args FAILED [ 49%] testing/test_pytester.py::test_testdir_run_no_timeout PASSED [ 49%] testing/test_pytester.py::test_testdir_run_with_timeout PASSED [ 49%] testing/test_pytester.py::test_testdir_run_timeout_expires PASSED [ 49%] testing/test_recwarn.py::test_recwarn_stacklevel PASSED [ 49%] testing/test_recwarn.py::test_recwarn_functional FAILED [ 49%] testing/test_recwarn.py::TestWarningsRecorderChecker::test_recording PASSED [ 49%] testing/test_recwarn.py::TestWarningsRecorderChecker::test_warn_stacklevel PASSED [ 49%] testing/test_recwarn.py::TestWarningsRecorderChecker::test_typechecking PASSED [ 49%] testing/test_recwarn.py::TestWarningsRecorderChecker::test_invalid_enter_exit PASSED [ 49%] testing/test_recwarn.py::TestDeprecatedCall::test_deprecated_call_raises PASSED [ 49%] testing/test_recwarn.py::TestDeprecatedCall::test_deprecated_call PASSED [ 49%] testing/test_recwarn.py::TestDeprecatedCall::test_deprecated_call_ret PASSED [ 49%] testing/test_recwarn.py::TestDeprecatedCall::test_deprecated_call_preserves PASSED [ 49%] testing/test_recwarn.py::TestDeprecatedCall::test_deprecated_explicit_call_raises PASSED [ 49%] testing/test_recwarn.py::TestDeprecatedCall::test_deprecated_explicit_call PASSED [ 49%] testing/test_recwarn.py::TestDeprecatedCall::test_deprecated_call_no_warning[context_manager] PASSED [ 49%] testing/test_recwarn.py::TestDeprecatedCall::test_deprecated_call_no_warning[call] PASSED [ 49%] testing/test_recwarn.py::TestDeprecatedCall::test_deprecated_call_modes[True-context_manager-PendingDeprecationWarning] PASSED [ 49%] testing/test_recwarn.py::TestDeprecatedCall::test_deprecated_call_modes[True-context_manager-DeprecationWarning] PASSED [ 49%] testing/test_recwarn.py::TestDeprecatedCall::test_deprecated_call_modes[True-call-PendingDeprecationWarning] PASSED [ 49%] testing/test_recwarn.py::TestDeprecatedCall::test_deprecated_call_modes[True-call-DeprecationWarning] PASSED [ 49%] testing/test_recwarn.py::TestDeprecatedCall::test_deprecated_call_modes[False-context_manager-PendingDeprecationWarning] PASSED [ 50%] testing/test_recwarn.py::TestDeprecatedCall::test_deprecated_call_modes[False-context_manager-DeprecationWarning] PASSED [ 50%] testing/test_recwarn.py::TestDeprecatedCall::test_deprecated_call_modes[False-call-PendingDeprecationWarning] PASSED [ 50%] testing/test_recwarn.py::TestDeprecatedCall::test_deprecated_call_modes[False-call-DeprecationWarning] PASSED [ 50%] testing/test_recwarn.py::TestDeprecatedCall::test_deprecated_call_exception_is_raised[context_manager] PASSED [ 50%] testing/test_recwarn.py::TestDeprecatedCall::test_deprecated_call_exception_is_raised[call] PASSED [ 50%] testing/test_recwarn.py::TestDeprecatedCall::test_deprecated_call_specificity PASSED [ 50%] testing/test_recwarn.py::TestDeprecatedCall::test_deprecated_call_supports_match PASSED [ 50%] testing/test_recwarn.py::TestWarns::test_strings PASSED [ 50%] testing/test_recwarn.py::TestWarns::test_function PASSED [ 50%] testing/test_recwarn.py::TestWarns::test_warning_tuple PASSED [ 50%] testing/test_recwarn.py::TestWarns::test_as_contextmanager PASSED [ 50%] testing/test_recwarn.py::TestWarns::test_record PASSED [ 50%] testing/test_recwarn.py::TestWarns::test_record_only PASSED [ 50%] testing/test_recwarn.py::TestWarns::test_record_by_subclass PASSED [ 50%] testing/test_recwarn.py::TestWarns::test_double_test FAILED [ 50%] testing/test_recwarn.py::TestWarns::test_match_regex PASSED [ 50%] testing/test_recwarn.py::TestWarns::test_one_from_multiple_warns PASSED [ 50%] testing/test_recwarn.py::TestWarns::test_none_of_multiple_warns PASSED [ 50%] testing/test_recwarn.py::TestWarns::test_can_capture_previously_warned PASSED [ 50%] testing/test_resultlog.py::test_generic_path FAILED [ 50%] testing/test_resultlog.py::test_write_log_entry PASSED [ 50%] testing/test_resultlog.py::TestWithFunctionIntegration::test_collection_report FAILED [ 51%] testing/test_resultlog.py::TestWithFunctionIntegration::test_log_test_outcomes FAILED [ 51%] testing/test_resultlog.py::TestWithFunctionIntegration::test_internal_exception[native] PASSED [ 51%] testing/test_resultlog.py::TestWithFunctionIntegration::test_internal_exception[long] PASSED [ 51%] testing/test_resultlog.py::TestWithFunctionIntegration::test_internal_exception[short] PASSED [ 51%] testing/test_resultlog.py::test_generic FAILED [ 51%] testing/test_resultlog.py::test_makedir_for_resultlog FAILED [ 51%] testing/test_resultlog.py::test_no_resultlog_on_slaves FAILED [ 51%] testing/test_resultlog.py::test_failure_issue380 FAILED [ 51%] testing/test_runner.py::TestSetupState::test_setup FAILED [ 51%] testing/test_runner.py::TestSetupState::test_teardown_exact_stack_empty FAILED [ 51%] testing/test_runner.py::TestSetupState::test_setup_fails_and_failure_is_cached FAILED [ 51%] testing/test_runner.py::TestSetupState::test_teardown_multiple_one_fails FAILED [ 51%] testing/test_runner.py::TestSetupState::test_teardown_multiple_fail FAILED [ 51%] testing/test_runner.py::TestSetupState::test_teardown_multiple_scopes_one_fails FAILED [ 51%] testing/test_runner.py::TestExecutionNonForked::test_passfunction FAILED [ 51%] testing/test_runner.py::TestExecutionNonForked::test_failfunction FAILED [ 51%] testing/test_runner.py::TestExecutionNonForked::test_skipfunction FAILED [ 51%] testing/test_runner.py::TestExecutionNonForked::test_skip_in_setup_function FAILED [ 51%] testing/test_runner.py::TestExecutionNonForked::test_failure_in_setup_function FAILED [ 51%] testing/test_runner.py::TestExecutionNonForked::test_failure_in_teardown_function FAILED [ 51%] testing/test_runner.py::TestExecutionNonForked::test_custom_failure_repr FAILED [ 51%] testing/test_runner.py::TestExecutionNonForked::test_teardown_final_returncode FAILED [ 51%] testing/test_runner.py::TestExecutionNonForked::test_logstart_logfinish_hooks FAILED [ 52%] testing/test_runner.py::TestExecutionNonForked::test_exact_teardown_issue90 FAILED [ 52%] testing/test_runner.py::TestExecutionNonForked::test_exact_teardown_issue1206 FAILED [ 52%] testing/test_runner.py::TestExecutionNonForked::test_failure_in_setup_function_ignores_custom_repr FAILED [ 52%] testing/test_runner.py::TestExecutionNonForked::test_systemexit_does_not_bail_out FAILED [ 52%] testing/test_runner.py::TestExecutionNonForked::test_exit_propagates FAILED [ 52%] testing/test_runner.py::TestExecutionNonForked::test_keyboardinterrupt_propagates FAILED [ 52%] testing/test_runner.py::TestExecutionForked::test_passfunction FAILED [ 52%] testing/test_runner.py::TestExecutionForked::test_failfunction FAILED [ 52%] testing/test_runner.py::TestExecutionForked::test_skipfunction FAILED [ 52%] testing/test_runner.py::TestExecutionForked::test_skip_in_setup_function FAILED [ 52%] testing/test_runner.py::TestExecutionForked::test_failure_in_setup_function FAILED [ 52%] testing/test_runner.py::TestExecutionForked::test_failure_in_teardown_function FAILED [ 52%] testing/test_runner.py::TestExecutionForked::test_custom_failure_repr FAILED [ 52%] testing/test_runner.py::TestExecutionForked::test_teardown_final_returncode FAILED [ 52%] testing/test_runner.py::TestExecutionForked::test_logstart_logfinish_hooks FAILED [ 52%] testing/test_runner.py::TestExecutionForked::test_exact_teardown_issue90 FAILED [ 52%] testing/test_runner.py::TestExecutionForked::test_exact_teardown_issue1206 FAILED [ 52%] testing/test_runner.py::TestExecutionForked::test_failure_in_setup_function_ignores_custom_repr FAILED [ 52%] testing/test_runner.py::TestExecutionForked::test_systemexit_does_not_bail_out FAILED [ 52%] testing/test_runner.py::TestExecutionForked::test_exit_propagates FAILED [ 52%] testing/test_runner.py::TestExecutionForked::test_suicide FAILED [ 52%] testing/test_runner.py::TestSessionReports::test_collect_result FAILED [ 53%] testing/test_runner.py::test_report_extra_parameters[BaseReport] PASSED [ 53%] testing/test_runner.py::test_report_extra_parameters[TestReport] PASSED [ 53%] testing/test_runner.py::test_report_extra_parameters[TeardownErrorReport] PASSED [ 53%] testing/test_runner.py::test_report_extra_parameters[CollectReport] PASSED [ 53%] testing/test_runner.py::test_callinfo PASSED [ 53%] testing/test_runner.py::test_runtest_in_module_ordering xfail [ 53%] testing/test_runner.py::test_outcomeexception_exceptionattributes PASSED [ 53%] testing/test_runner.py::test_outcomeexception_passes_except_Exception PASSED [ 53%] testing/test_runner.py::test_pytest_exit PASSED [ 53%] testing/test_runner.py::test_pytest_fail PASSED [ 53%] testing/test_runner.py::test_pytest_exit_msg FAILED [ 53%] testing/test_runner.py::test_pytest_exit_returncode FAILED [ 53%] testing/test_runner.py::test_pytest_fail_notrace_runtest FAILED [ 53%] testing/test_runner.py::test_pytest_fail_notrace_collection FAILED [ 53%] testing/test_runner.py::test_pytest_fail_notrace_non_ascii[u] FAILED [ 53%] testing/test_runner.py::test_pytest_fail_notrace_non_ascii[] FAILED [ 53%] testing/test_runner.py::test_pytest_no_tests_collected_exit_status FAILED [ 53%] testing/test_runner.py::test_exception_printing_skip PASSED [ 53%] testing/test_runner.py::test_importorskip PASSED [ 53%] testing/test_runner.py::test_importorskip_imports_last_module_part PASSED [ 53%] testing/test_runner.py::test_importorskip_dev_module PASSED [ 53%] testing/test_runner.py::test_importorskip_module_level FAILED [ 54%] testing/test_runner.py::test_pytest_cmdline_main PASSED [ 54%] testing/test_runner.py::test_unicode_in_longrepr FAILED [ 54%] testing/test_runner.py::test_failure_in_setup PASSED [ 54%] testing/test_runner.py::test_makereport_getsource FAILED [ 54%] testing/test_runner.py::test_makereport_getsource_dynamic_code FAILED [ 54%] testing/test_runner.py::test_store_except_info_on_error PASSED [ 54%] testing/test_runner.py::test_current_test_env_var FAILED [ 54%] testing/test_runner.py::TestReportContents::test_longreprtext_pass FAILED [ 54%] testing/test_runner.py::TestReportContents::test_longreprtext_failure FAILED [ 54%] testing/test_runner.py::TestReportContents::test_captured_text FAILED [ 54%] testing/test_runner.py::TestReportContents::test_no_captured_text FAILED [ 54%] testing/test_runner_xunit.py::test_module_and_function_setup FAILED [ 54%] testing/test_runner_xunit.py::test_module_setup_failure_no_teardown FAILED [ 54%] testing/test_runner_xunit.py::test_setup_function_failure_no_teardown FAILED [ 54%] testing/test_runner_xunit.py::test_class_setup FAILED [ 54%] testing/test_runner_xunit.py::test_class_setup_failure_no_teardown FAILED [ 54%] testing/test_runner_xunit.py::test_method_setup FAILED [ 54%] testing/test_runner_xunit.py::test_method_setup_failure_no_teardown FAILED [ 54%] testing/test_runner_xunit.py::test_method_generator_setup FAILED [ 54%] testing/test_runner_xunit.py::test_func_generator_setup FAILED [ 54%] testing/test_runner_xunit.py::test_method_setup_uses_fresh_instances FAILED [ 54%] testing/test_runner_xunit.py::test_setup_that_skips_calledagain FAILED [ 54%] testing/test_runner_xunit.py::test_setup_fails_again_on_all_tests FAILED [ 55%] testing/test_runner_xunit.py::test_setup_funcarg_setup_when_outer_scope_fails FAILED [ 55%] testing/test_runner_xunit.py::test_setup_teardown_function_level_with_optional_argument[] FAILED [ 55%] testing/test_runner_xunit.py::test_setup_teardown_function_level_with_optional_argument[arg] FAILED [ 55%] testing/test_session.py::TestNewSession::test_basic_testitem_events FAILED [ 55%] testing/test_session.py::TestNewSession::test_nested_import_error FAILED [ 55%] testing/test_session.py::TestNewSession::test_raises_output FAILED [ 55%] testing/test_session.py::TestNewSession::test_generator_yields_None FAILED [ 55%] testing/test_session.py::TestNewSession::test_syntax_error_module FAILED [ 55%] testing/test_session.py::TestNewSession::test_exit_first_problem FAILED [ 55%] testing/test_session.py::TestNewSession::test_maxfail FAILED [ 55%] testing/test_session.py::TestNewSession::test_broken_repr FAILED [ 55%] testing/test_session.py::TestNewSession::test_skip_file_by_conftest FAILED [ 55%] testing/test_session.py::TestNewSession::test_order_of_execution FAILED [ 55%] testing/test_session.py::TestNewSession::test_collect_only_with_various_situations FAILED [ 55%] testing/test_session.py::TestNewSession::test_minus_x_import_error FAILED [ 55%] testing/test_session.py::TestNewSession::test_minus_x_overridden_by_maxfail FAILED [ 55%] testing/test_session.py::test_plugin_specify PASSED [ 55%] testing/test_session.py::test_plugin_already_exists FAILED [ 55%] testing/test_session.py::test_exclude FAILED [ 55%] testing/test_session.py::test_deselect FAILED [ 55%] testing/test_session.py::test_sessionfinish_with_start FAILED [ 55%] testing/test_session.py::test_rootdir_option_arg[root] FAILED [ 56%] testing/test_session.py::test_rootdir_option_arg[{relative}/root] FAILED [ 56%] testing/test_session.py::test_rootdir_option_arg[{environment}/root] FAILED [ 56%] testing/test_session.py::test_rootdir_wrong_option_arg PASSED [ 56%] testing/test_skipping.py::TestEvaluator::test_no_marker FAILED [ 56%] testing/test_skipping.py::TestEvaluator::test_marked_no_args FAILED [ 56%] testing/test_skipping.py::TestEvaluator::test_marked_one_arg FAILED [ 56%] testing/test_skipping.py::TestEvaluator::test_marked_one_arg_unicode SKIPPED [ 56%] testing/test_skipping.py::TestEvaluator::test_marked_one_arg_with_reason FAILED [ 56%] testing/test_skipping.py::TestEvaluator::test_marked_one_arg_twice FAILED [ 56%] testing/test_skipping.py::TestEvaluator::test_marked_one_arg_twice2 FAILED [ 56%] testing/test_skipping.py::TestEvaluator::test_marked_skip_with_not_string FAILED [ 56%] testing/test_skipping.py::TestEvaluator::test_skipif_class FAILED [ 56%] testing/test_skipping.py::TestXFail::test_xfail_simple[True] FAILED [ 56%] testing/test_skipping.py::TestXFail::test_xfail_simple[False] FAILED [ 56%] testing/test_skipping.py::TestXFail::test_xfail_xpassed FAILED [ 56%] testing/test_skipping.py::TestXFail::test_xfail_using_platform FAILED [ 56%] testing/test_skipping.py::TestXFail::test_xfail_xpassed_strict FAILED [ 56%] testing/test_skipping.py::TestXFail::test_xfail_run_anyway FAILED [ 56%] testing/test_skipping.py::TestXFail::test_xfail_evalfalse_but_fails FAILED [ 56%] testing/test_skipping.py::TestXFail::test_xfail_not_report_default PASSED [ 56%] testing/test_skipping.py::TestXFail::test_xfail_not_run_xfail_reporting FAILED [ 56%] testing/test_skipping.py::TestXFail::test_xfail_not_run_no_setup_run FAILED [ 57%] testing/test_skipping.py::TestXFail::test_xfail_xpass FAILED [ 57%] testing/test_skipping.py::TestXFail::test_xfail_imperative FAILED [ 57%] testing/test_skipping.py::TestXFail::test_xfail_imperative_in_setup_function FAILED [ 57%] testing/test_skipping.py::TestXFail::test_dynamic_xfail_no_run FAILED [ 57%] testing/test_skipping.py::TestXFail::test_dynamic_xfail_set_during_funcarg_setup FAILED [ 57%] testing/test_skipping.py::TestXFail::test_xfail_raises[TypeError-TypeError-*1 xfailed*] FAILED [ 57%] testing/test_skipping.py::TestXFail::test_xfail_raises[(AttributeError, TypeError)-TypeError-*1 xfailed*] FAILED [ 57%] testing/test_skipping.py::TestXFail::test_xfail_raises[TypeError-IndexError-*1 failed*] FAILED [ 57%] testing/test_skipping.py::TestXFail::test_xfail_raises[(AttributeError, TypeError)-IndexError-*1 failed*] FAILED [ 57%] testing/test_skipping.py::TestXFail::test_strict_sanity FAILED [ 57%] testing/test_skipping.py::TestXFail::test_strict_xfail[True] FAILED [ 57%] testing/test_skipping.py::TestXFail::test_strict_xfail[False] FAILED [ 57%] testing/test_skipping.py::TestXFail::test_strict_xfail_condition[True] FAILED [ 57%] testing/test_skipping.py::TestXFail::test_strict_xfail_condition[False] FAILED [ 57%] testing/test_skipping.py::TestXFail::test_xfail_condition_keyword[True] FAILED [ 57%] testing/test_skipping.py::TestXFail::test_xfail_condition_keyword[False] FAILED [ 57%] testing/test_skipping.py::TestXFail::test_strict_xfail_default_from_file[true] FAILED [ 57%] testing/test_skipping.py::TestXFail::test_strict_xfail_default_from_file[false] FAILED [ 57%] testing/test_skipping.py::TestXFailwithSetupTeardown::test_failing_setup_issue9 FAILED [ 57%] testing/test_skipping.py::TestXFailwithSetupTeardown::test_failing_teardown_issue9 FAILED [ 57%] testing/test_skipping.py::TestSkip::test_skip_class FAILED [ 57%] testing/test_skipping.py::TestSkip::test_skips_on_false_string FAILED [ 57%] testing/test_skipping.py::TestSkip::test_arg_as_reason FAILED [ 58%] testing/test_skipping.py::TestSkip::test_skip_no_reason FAILED [ 58%] testing/test_skipping.py::TestSkip::test_skip_with_reason FAILED [ 58%] testing/test_skipping.py::TestSkip::test_only_skips_marked_test FAILED [ 58%] testing/test_skipping.py::TestSkip::test_strict_and_skip FAILED [ 58%] testing/test_skipping.py::TestSkipif::test_skipif_conditional FAILED [ 58%] testing/test_skipping.py::TestSkipif::test_skipif_reporting["hasattr(sys, 'platform')"] FAILED [ 58%] testing/test_skipping.py::TestSkipif::test_skipif_reporting[True, reason="invalid platform"] FAILED [ 58%] testing/test_skipping.py::TestSkipif::test_skipif_using_platform FAILED [ 58%] testing/test_skipping.py::TestSkipif::test_skipif_reporting_multiple[skipif-SKIP-skipped] FAILED [ 58%] testing/test_skipping.py::TestSkipif::test_skipif_reporting_multiple[xfail-XPASS-xpassed] FAILED [ 58%] testing/test_skipping.py::test_skip_not_report_default FAILED [ 58%] testing/test_skipping.py::test_skipif_class FAILED [ 58%] testing/test_skipping.py::test_skip_reasons_folding PASSED [ 58%] testing/test_skipping.py::test_skipped_reasons_functional FAILED [ 58%] testing/test_skipping.py::test_skipped_folding FAILED [ 58%] testing/test_skipping.py::test_reportchars FAILED [ 58%] testing/test_skipping.py::test_reportchars_error FAILED [ 58%] testing/test_skipping.py::test_reportchars_all FAILED [ 58%] testing/test_skipping.py::test_reportchars_all_error FAILED [ 58%] testing/test_skipping.py::test_errors_in_xfail_skip_expressions FAILED [ 58%] testing/test_skipping.py::test_xfail_skipif_with_globals FAILED [ 58%] testing/test_skipping.py::test_direct_gives_error FAILED [ 59%] testing/test_skipping.py::test_default_markers FAILED [ 59%] testing/test_skipping.py::test_xfail_test_setup_exception FAILED [ 59%] testing/test_skipping.py::test_imperativeskip_on_xfail_test FAILED [ 59%] testing/test_skipping.py::TestBooleanCondition::test_skipif FAILED [ 59%] testing/test_skipping.py::TestBooleanCondition::test_skipif_noreason FAILED [ 59%] testing/test_skipping.py::TestBooleanCondition::test_xfail FAILED [ 59%] testing/test_skipping.py::test_xfail_item FAILED [ 59%] testing/test_skipping.py::test_module_level_skip_error FAILED [ 59%] testing/test_skipping.py::test_module_level_skip_with_allow_module_level FAILED [ 59%] testing/test_skipping.py::test_invalid_skip_keyword_parameter FAILED [ 59%] testing/test_skipping.py::test_mark_xfail_item FAILED [ 59%] testing/test_skipping.py::test_summary_list_after_errors FAILED [ 59%] testing/test_stepwise.py::test_run_without_stepwise FAILED [ 59%] testing/test_stepwise.py::test_fail_and_continue_with_stepwise FAILED [ 59%] testing/test_stepwise.py::test_run_with_skip_option FAILED [ 59%] testing/test_stepwise.py::test_fail_on_errors FAILED [ 59%] testing/test_stepwise.py::test_change_testfile FAILED [ 59%] testing/test_stepwise.py::test_stop_on_collection_errors FAILED [ 59%] testing/test_terminal.py::test_plugin_nameversion[normal] PASSED [ 59%] testing/test_terminal.py::test_plugin_nameversion[prefix-strip] PASSED [ 59%] testing/test_terminal.py::test_plugin_nameversion[deduplicate] PASSED [ 59%] testing/test_terminal.py::TestCollectonly::test_collectonly_basic FAILED [ 60%] testing/test_terminal.py::TestCollectonly::test_collectonly_skipped_module FAILED [ 60%] testing/test_terminal.py::TestCollectonly::test_collectonly_failed_module FAILED [ 60%] testing/test_terminal.py::TestCollectonly::test_collectonly_fatal FAILED [ 60%] testing/test_terminal.py::TestCollectonly::test_collectonly_simple FAILED [ 60%] testing/test_terminal.py::TestCollectonly::test_collectonly_error FAILED [ 60%] testing/test_terminal.py::TestCollectonly::test_collectonly_missing_path FAILED [ 60%] testing/test_terminal.py::TestCollectonly::test_collectonly_quiet FAILED [ 60%] testing/test_terminal.py::TestCollectonly::test_collectonly_more_quiet FAILED [ 60%] testing/test_terminal.py::test_repr_python_version PASSED [ 60%] testing/test_terminal.py::TestFixtureReporting::test_setup_fixture_error FAILED [ 60%] testing/test_terminal.py::TestFixtureReporting::test_teardown_fixture_error FAILED [ 60%] testing/test_terminal.py::TestFixtureReporting::test_teardown_fixture_error_and_test_failure FAILED [ 60%] testing/test_terminal.py::TestFixtureReporting::test_setup_teardown_output_and_test_failure FAILED [ 60%] testing/test_terminal.py::test_fail_extra_reporting FAILED [ 60%] testing/test_terminal.py::test_fail_reporting_on_pass PASSED [ 60%] testing/test_terminal.py::test_pass_extra_reporting FAILED [ 60%] testing/test_terminal.py::test_pass_reporting_on_fail PASSED [ 60%] testing/test_terminal.py::test_pass_output_reporting FAILED [ 60%] testing/test_terminal.py::test_color_yes FAILED [ 60%] testing/test_terminal.py::test_color_no FAILED [ 60%] testing/test_terminal.py::test_color_yes_collection_on_non_atty[True] FAILED [ 60%] testing/test_terminal.py::test_color_yes_collection_on_non_atty[False] FAILED [ 60%] testing/test_terminal.py::test_getreportopt PASSED [ 61%] testing/test_terminal.py::test_terminalreporter_reportopt_addopts FAILED [ 61%] testing/test_terminal.py::test_tbstyle_short FAILED [ 61%] testing/test_terminal.py::test_traceconfig FAILED [ 61%] testing/test_terminal.py::TestGenericReporting::test_collect_fail[default] FAILED [ 61%] testing/test_terminal.py::TestGenericReporting::test_collect_fail[verbose] FAILED [ 61%] testing/test_terminal.py::TestGenericReporting::test_collect_fail[quiet] FAILED [ 61%] testing/test_terminal.py::TestGenericReporting::test_collect_fail[fulltrace] FAILED [ 61%] testing/test_terminal.py::TestGenericReporting::test_maxfailures[default] FAILED [ 61%] testing/test_terminal.py::TestGenericReporting::test_maxfailures[verbose] FAILED [ 61%] testing/test_terminal.py::TestGenericReporting::test_maxfailures[quiet] FAILED [ 61%] testing/test_terminal.py::TestGenericReporting::test_maxfailures[fulltrace] FAILED [ 61%] testing/test_terminal.py::TestGenericReporting::test_tb_option[default] FAILED [ 61%] testing/test_terminal.py::TestGenericReporting::test_tb_option[verbose] FAILED [ 61%] testing/test_terminal.py::TestGenericReporting::test_tb_option[quiet] FAILED [ 61%] testing/test_terminal.py::TestGenericReporting::test_tb_option[fulltrace] FAILED [ 61%] testing/test_terminal.py::TestGenericReporting::test_tb_crashline[default] FAILED [ 61%] testing/test_terminal.py::TestGenericReporting::test_tb_crashline[verbose] FAILED [ 61%] testing/test_terminal.py::TestGenericReporting::test_tb_crashline[quiet] FAILED [ 61%] testing/test_terminal.py::TestGenericReporting::test_tb_crashline[fulltrace] FAILED [ 61%] testing/test_terminal.py::TestGenericReporting::test_pytest_report_header[default] FAILED [ 61%] testing/test_terminal.py::TestGenericReporting::test_pytest_report_header[verbose] FAILED [ 61%] testing/test_terminal.py::TestGenericReporting::test_pytest_report_header[quiet] FAILED [ 62%] testing/test_terminal.py::TestGenericReporting::test_pytest_report_header[fulltrace] FAILED [ 62%] testing/test_terminal.py::TestGenericReporting::test_show_capture FAILED [ 62%] testing/test_terminal.py::TestGenericReporting::test_show_capture_with_teardown_logs FAILED [ 62%] testing/test_terminal.py::test_fdopen_kept_alive_issue124 FAILED [ 62%] testing/test_terminal.py::test_tbstyle_native_setup_error FAILED [ 62%] testing/test_terminal.py::test_terminal_summary FAILED [ 62%] testing/test_terminal.py::test_terminal_summary_warnings_are_displayed PASSED [ 62%] testing/test_terminal.py::test_summary_stats[red-1 failed-stats_arg0] PASSED [ 62%] testing/test_terminal.py::test_summary_stats[red-1 failed, 1 passed-stats_arg1] PASSED [ 62%] testing/test_terminal.py::test_summary_stats[red-1 error-stats_arg2] PASSED [ 62%] testing/test_terminal.py::test_summary_stats[red-1 passed, 1 error-stats_arg3] PASSED [ 62%] testing/test_terminal.py::test_summary_stats[yellow-1 weird-stats_arg4] PASSED [ 62%] testing/test_terminal.py::test_summary_stats[yellow-1 passed, 1 weird-stats_arg5] PASSED [ 62%] testing/test_terminal.py::test_summary_stats[yellow-1 warnings-stats_arg6] PASSED [ 62%] testing/test_terminal.py::test_summary_stats[yellow-1 passed, 1 warnings-stats_arg7] PASSED [ 62%] testing/test_terminal.py::test_summary_stats[green-5 passed-stats_arg8] PASSED [ 62%] testing/test_terminal.py::test_summary_stats[yellow-1 skipped-stats_arg9] PASSED [ 62%] testing/test_terminal.py::test_summary_stats[green-1 passed, 1 skipped-stats_arg10] PASSED [ 62%] testing/test_terminal.py::test_summary_stats[yellow-1 deselected-stats_arg11] PASSED [ 62%] testing/test_terminal.py::test_summary_stats[green-1 passed, 1 deselected-stats_arg12] PASSED [ 62%] testing/test_terminal.py::test_summary_stats[yellow-1 xfailed-stats_arg13] PASSED [ 62%] testing/test_terminal.py::test_summary_stats[green-1 passed, 1 xfailed-stats_arg14] PASSED [ 62%] testing/test_terminal.py::test_summary_stats[yellow-1 xpassed-stats_arg15] PASSED [ 63%] testing/test_terminal.py::test_summary_stats[green-1 passed, 1 xpassed-stats_arg16] PASSED [ 63%] testing/test_terminal.py::test_summary_stats[yellow-no tests ran-stats_arg17] PASSED [ 63%] testing/test_terminal.py::test_summary_stats[yellow-no tests ran-stats_arg18] PASSED [ 63%] testing/test_terminal.py::test_summary_stats[green-1 passed-stats_arg19] PASSED [ 63%] testing/test_terminal.py::test_summary_stats[red-1 failed, 2 passed, 3 xfailed-stats_arg20] PASSED [ 63%] testing/test_terminal.py::test_summary_stats[green-1 passed, 2 skipped, 3 deselected, 2 xfailed-stats_arg21] PASSED [ 63%] testing/test_terminal.py::test_no_trailing_whitespace_after_inifile_word FAILED [ 63%] testing/test_terminal.py::TestClassicOutputStyle::test_normal_verbosity FAILED [ 63%] testing/test_terminal.py::TestClassicOutputStyle::test_verbose FAILED [ 63%] testing/test_terminal.py::TestClassicOutputStyle::test_quiet FAILED [ 63%] testing/test_terminal.py::TestProgressOutputStyle::test_zero_tests_collected FAILED [ 63%] testing/test_terminal.py::TestProgressOutputStyle::test_normal FAILED [ 63%] testing/test_terminal.py::TestProgressOutputStyle::test_count FAILED [ 63%] testing/test_terminal.py::TestProgressOutputStyle::test_verbose FAILED [ 63%] testing/test_terminal.py::TestProgressOutputStyle::test_verbose_count FAILED [ 63%] testing/test_terminal.py::TestProgressOutputStyle::test_xdist_normal SKIPPED [ 63%] testing/test_terminal.py::TestProgressOutputStyle::test_xdist_normal_count SKIPPED [ 63%] testing/test_terminal.py::TestProgressOutputStyle::test_xdist_verbose SKIPPED [ 63%] testing/test_terminal.py::TestProgressOutputStyle::test_capture_no FAILED [ 63%] testing/test_terminal.py::TestProgressWithTeardown::test_teardown_simple FAILED [ 63%] testing/test_terminal.py::TestProgressWithTeardown::test_teardown_with_test_also_failing FAILED [ 63%] testing/test_terminal.py::TestProgressWithTeardown::test_teardown_many FAILED [ 64%] testing/test_terminal.py::TestProgressWithTeardown::test_teardown_many_verbose FAILED [ 64%] testing/test_terminal.py::TestProgressWithTeardown::test_xdist_normal SKIPPED [ 64%] testing/test_tmpdir.py::test_tmpdir_fixture FAILED [ 64%] testing/test_tmpdir.py::test_ensuretemp PASSED [ 64%] testing/test_tmpdir.py::TestTempdirHandler::test_mktemp FAILED [ 64%] testing/test_tmpdir.py::TestConfigTmpdir::test_getbasetemp_custom_removes_old FAILED [ 64%] testing/test_tmpdir.py::test_basetemp FAILED [ 64%] testing/test_tmpdir.py::test_tmpdir_always_is_realpath FAILED [ 64%] testing/test_tmpdir.py::test_tmpdir_too_long_on_parametrization FAILED [ 64%] testing/test_tmpdir.py::test_tmpdir_factory FAILED [ 64%] testing/test_tmpdir.py::test_tmpdir_fallback_tox_env FAILED [ 64%] testing/test_tmpdir.py::test_tmpdir_fallback_uid_not_found FAILED [ 64%] testing/test_tmpdir.py::test_get_user_uid_not_found PASSED [ 64%] testing/test_tmpdir.py::test_get_user SKIPPED [ 64%] testing/test_tmpdir.py::TestNumberedDir::test_make PASSED [ 64%] testing/test_tmpdir.py::TestNumberedDir::test_cleanup_lock_create PASSED [ 64%] testing/test_tmpdir.py::TestNumberedDir::test_lock_register_cleanup_removal PASSED [ 64%] testing/test_tmpdir.py::TestNumberedDir::test_cleanup_keep PASSED [ 64%] testing/test_tmpdir.py::TestNumberedDir::test_cleanup_locked PASSED [ 64%] testing/test_tmpdir.py::TestNumberedDir::test_rmtree PASSED [ 64%] testing/test_tmpdir.py::TestNumberedDir::test_cleanup_ignores_symlink PASSED [ 64%] testing/test_tmpdir.py::TestNumberedDir::test_removal_accepts_lock PASSED [ 65%] testing/test_unittest.py::test_simple_unittest FAILED [ 65%] testing/test_unittest.py::test_runTest_method FAILED [ 65%] testing/test_unittest.py::test_isclasscheck_issue53 FAILED [ 65%] testing/test_unittest.py::test_setup FAILED [ 65%] testing/test_unittest.py::test_setUpModule FAILED [ 65%] testing/test_unittest.py::test_setUpModule_failing_no_teardown FAILED [ 65%] testing/test_unittest.py::test_new_instances FAILED [ 65%] testing/test_unittest.py::test_teardown FAILED [ 65%] testing/test_unittest.py::test_teardown_issue1649 FAILED [ 65%] testing/test_unittest.py::test_unittest_skip_issue148 FAILED [ 65%] testing/test_unittest.py::test_method_and_teardown_failing_reporting FAILED [ 65%] testing/test_unittest.py::test_setup_failure_is_shown FAILED [ 65%] testing/test_unittest.py::test_setup_setUpClass FAILED [ 65%] testing/test_unittest.py::test_setup_class FAILED [ 65%] testing/test_unittest.py::test_testcase_adderrorandfailure_defers[Error] PASSED [ 65%] testing/test_unittest.py::test_testcase_adderrorandfailure_defers[Failure] PASSED [ 65%] testing/test_unittest.py::test_testcase_custom_exception_info[Error] FAILED [ 65%] testing/test_unittest.py::test_testcase_custom_exception_info[Failure] FAILED [ 65%] testing/test_unittest.py::test_testcase_totally_incompatible_exception_info FAILED [ 65%] testing/test_unittest.py::test_module_level_pytestmark FAILED [ 65%] testing/test_unittest.py::TestTrialUnittest::test_trial_testcase_runtest_not_collected SKIPPED [ 65%] testing/test_unittest.py::TestTrialUnittest::test_trial_exceptions_with_skips SKIPPED [ 65%] testing/test_unittest.py::TestTrialUnittest::test_trial_error SKIPPED [ 66%] testing/test_unittest.py::TestTrialUnittest::test_trial_pdb SKIPPED [ 66%] testing/test_unittest.py::TestTrialUnittest::test_trial_testcase_skip_property SKIPPED [ 66%] testing/test_unittest.py::TestTrialUnittest::test_trial_testfunction_skip_property SKIPPED [ 66%] testing/test_unittest.py::TestTrialUnittest::test_trial_testcase_todo_property SKIPPED [ 66%] testing/test_unittest.py::TestTrialUnittest::test_trial_testfunction_todo_property SKIPPED [ 66%] testing/test_unittest.py::test_djangolike_testcase FAILED [ 66%] testing/test_unittest.py::test_unittest_not_shown_in_traceback PASSED [ 66%] testing/test_unittest.py::test_unorderable_types FAILED [ 66%] testing/test_unittest.py::test_unittest_typerror_traceback FAILED [ 66%] testing/test_unittest.py::test_unittest_expected_failure_for_failing_test_is_xfail[pytest] FAILED [ 66%] testing/test_unittest.py::test_unittest_expected_failure_for_failing_test_is_xfail[unittest] PASSED [ 66%] testing/test_unittest.py::test_unittest_expected_failure_for_passing_test_is_fail[pytest] FAILED [ 66%] testing/test_unittest.py::test_unittest_expected_failure_for_passing_test_is_fail[unittest] PASSED [ 66%] testing/test_unittest.py::test_unittest_setup_interaction[fixture-return] FAILED [ 66%] testing/test_unittest.py::test_unittest_setup_interaction[yield_fixture-yield] FAILED [ 66%] testing/test_unittest.py::test_non_unittest_no_setupclass_support FAILED [ 66%] testing/test_unittest.py::test_no_teardown_if_setupclass_failed FAILED [ 66%] testing/test_unittest.py::test_issue333_result_clearing FAILED [ 66%] testing/test_unittest.py::test_unittest_raise_skip_issue748 FAILED [ 66%] testing/test_unittest.py::test_unittest_skip_issue1169 FAILED [ 66%] testing/test_unittest.py::test_class_method_containing_test_issue1558 FAILED [ 66%] testing/test_unittest.py::test_usefixtures_marker_on_unittest[six.moves.builtins.object] FAILED [ 67%] testing/test_unittest.py::test_usefixtures_marker_on_unittest[unittest.TestCase] FAILED [ 67%] testing/test_unittest.py::test_usefixtures_marker_on_unittest[unittest2.TestCase] SKIPPED [ 67%] testing/test_unittest.py::test_testcase_handles_init_exceptions FAILED [ 67%] testing/test_unittest.py::test_error_message_with_parametrized_fixtures FAILED [ 67%] testing/test_warnings.py::test_normal_flow PASSED [ 67%] testing/test_warnings.py::test_setup_teardown_warnings PASSED [ 67%] testing/test_warnings.py::test_as_errors[cmdline] FAILED [ 67%] testing/test_warnings.py::test_as_errors[ini] FAILED [ 67%] testing/test_warnings.py::test_ignore[cmdline] FAILED [ 67%] testing/test_warnings.py::test_ignore[ini] FAILED [ 67%] testing/test_warnings.py::test_unicode PASSED [ 67%] testing/test_warnings.py::test_py2_unicode SKIPPED [ 67%] testing/test_warnings.py::test_py2_unicode_ascii FAILED [ 67%] testing/test_warnings.py::test_works_with_filterwarnings FAILED [ 67%] testing/test_warnings.py::test_filterwarnings_mark[ini] FAILED [ 67%] testing/test_warnings.py::test_filterwarnings_mark[cmdline] FAILED [ 67%] testing/test_warnings.py::test_non_string_warning_argument FAILED [ 67%] testing/test_warnings.py::test_filterwarnings_mark_registration FAILED [ 67%] testing/test_warnings.py::test_warning_captured_hook PASSED [ 67%] testing/test_warnings.py::test_collection_warnings PASSED [ 67%] testing/test_warnings.py::test_mark_regex_escape PASSED [ 67%] testing/test_warnings.py::test_hide_pytest_internal_warnings[no] PASSED [ 68%] testing/test_warnings.py::test_hide_pytest_internal_warnings[ini] PASSED [ 68%] testing/test_warnings.py::test_hide_pytest_internal_warnings[cmdline] PASSED [ 68%] testing/test_warnings.py::test_option_precedence_cmdline_over_ini[True] FAILED [ 68%] testing/test_warnings.py::test_option_precedence_cmdline_over_ini[False] FAILED [ 68%] testing/test_warnings.py::test_option_precedence_mark FAILED [ 68%] testing/test_warnings.py::TestDeprecationWarningsByDefault::test_shown_by_default[True] PASSED [ 68%] testing/test_warnings.py::TestDeprecationWarningsByDefault::test_shown_by_default[False] PASSED [ 68%] testing/test_warnings.py::TestDeprecationWarningsByDefault::test_hidden_by_ini PASSED [ 68%] testing/test_warnings.py::TestDeprecationWarningsByDefault::test_hidden_by_mark PASSED [ 68%] testing/test_warnings.py::TestDeprecationWarningsByDefault::test_hidden_by_cmdline PASSED [ 68%] testing/test_warnings.py::TestDeprecationWarningsByDefault::test_hidden_by_system PASSED [ 68%] testing/test_warnings.py::test_infinite_loop_warning_against_unicode_usage_py2 SKIPPED [ 68%] testing/code/test_code.py::test_ne PASSED [ 68%] testing/code/test_code.py::test_code_gives_back_name_for_not_existing_file PASSED [ 68%] testing/code/test_code.py::test_code_with_class PASSED [ 68%] testing/code/test_code.py::test_code_fullsource PASSED [ 68%] testing/code/test_code.py::test_code_source PASSED [ 68%] testing/code/test_code.py::test_frame_getsourcelineno_myself PASSED [ 68%] testing/code/test_code.py::test_getstatement_empty_fullsource PASSED [ 68%] testing/code/test_code.py::test_code_from_func PASSED [ 68%] testing/code/test_code.py::test_unicode_handling PASSED [ 68%] testing/code/test_code.py::test_unicode_handling_syntax_error SKIPPED [ 68%] testing/code/test_code.py::test_code_getargs PASSED [ 69%] testing/code/test_code.py::test_frame_getargs PASSED [ 69%] testing/code/test_code.py::TestExceptionInfo::test_bad_getsource PASSED [ 69%] testing/code/test_code.py::TestTracebackEntry::test_getsource PASSED [ 69%] testing/code/test_code.py::TestReprFuncArgs::test_not_raise_exception_with_mixed_encoding PASSED [ 69%] testing/code/test_excinfo.py::test_excinfo_simple PASSED [ 69%] testing/code/test_excinfo.py::test_excinfo_getstatement PASSED [ 69%] testing/code/test_excinfo.py::TestTraceback_f_g_h::test_traceback_entries PASSED [ 69%] testing/code/test_excinfo.py::TestTraceback_f_g_h::test_traceback_entry_getsource PASSED [ 69%] testing/code/test_excinfo.py::TestTraceback_f_g_h::test_traceback_entry_getsource_in_construct PASSED [ 69%] testing/code/test_excinfo.py::TestTraceback_f_g_h::test_traceback_cut PASSED [ 69%] testing/code/test_excinfo.py::TestTraceback_f_g_h::test_traceback_cut_excludepath PASSED [ 69%] testing/code/test_excinfo.py::TestTraceback_f_g_h::test_traceback_filter PASSED [ 69%] testing/code/test_excinfo.py::TestTraceback_f_g_h::test_traceback_filter_selective[-True] PASSED [ 69%] testing/code/test_excinfo.py::TestTraceback_f_g_h::test_traceback_filter_selective[-False] PASSED [ 69%] testing/code/test_excinfo.py::TestTraceback_f_g_h::test_traceback_filter_selective[tracebackhide2-True] PASSED [ 69%] testing/code/test_excinfo.py::TestTraceback_f_g_h::test_traceback_filter_selective[tracebackhide3-False] PASSED [ 69%] testing/code/test_excinfo.py::TestTraceback_f_g_h::test_traceback_recursion_index PASSED [ 69%] testing/code/test_excinfo.py::TestTraceback_f_g_h::test_traceback_only_specific_recursion_errors PASSED [ 69%] testing/code/test_excinfo.py::TestTraceback_f_g_h::test_traceback_no_recursion_index PASSED [ 69%] testing/code/test_excinfo.py::TestTraceback_f_g_h::test_traceback_messy_recursion SKIPPED [ 69%] testing/code/test_excinfo.py::TestTraceback_f_g_h::test_traceback_getcrashentry PASSED [ 69%] testing/code/test_excinfo.py::TestTraceback_f_g_h::test_traceback_getcrashentry_empty PASSED [ 70%] testing/code/test_excinfo.py::test_excinfo_exconly PASSED [ 70%] testing/code/test_excinfo.py::test_excinfo_repr PASSED [ 70%] testing/code/test_excinfo.py::test_excinfo_str PASSED [ 70%] testing/code/test_excinfo.py::test_excinfo_errisinstance PASSED [ 70%] testing/code/test_excinfo.py::test_excinfo_no_sourcecode PASSED [ 70%] testing/code/test_excinfo.py::test_excinfo_no_python_sourcecode PASSED [ 70%] testing/code/test_excinfo.py::test_entrysource_Queue_example PASSED [ 70%] testing/code/test_excinfo.py::test_codepath_Queue_example PASSED [ 70%] testing/code/test_excinfo.py::test_match_succeeds PASSED [ 70%] testing/code/test_excinfo.py::test_match_raises_error FAILED [ 70%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_repr_source PASSED [ 70%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_repr_source_excinfo PASSED [ 70%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_repr_source_not_existing PASSED [ 70%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_repr_many_line_source_not_existing PASSED [ 70%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_repr_source_failing_fullsource PASSED [ 70%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_repr_local PASSED [ 70%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_repr_local_truncated PASSED [ 70%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_repr_tracebackentry_lines PASSED [ 70%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_repr_tracebackentry_lines2 PASSED [ 70%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_repr_tracebackentry_lines_var_kw_args PASSED [ 70%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_repr_tracebackentry_short PASSED [ 70%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_repr_tracebackentry_no PASSED [ 71%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_repr_traceback_tbfilter PASSED [ 71%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_traceback_short_no_source PASSED [ 71%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_repr_traceback_and_excinfo PASSED [ 71%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_repr_traceback_with_invalid_cwd PASSED [ 71%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_repr_excinfo_addouterr PASSED [ 71%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_repr_excinfo_reprcrash PASSED [ 71%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_repr_traceback_recursion PASSED [ 71%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_reprexcinfo_getrepr PASSED [ 71%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_reprexcinfo_unicode PASSED [ 71%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_toterminal_long PASSED [ 71%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_toterminal_long_missing_source PASSED [ 71%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_toterminal_long_incomplete_source PASSED [ 71%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_toterminal_long_filenames PASSED [ 71%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_format_excinfo[reproptions0] PASSED [ 71%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_format_excinfo[reproptions1] PASSED [ 71%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_format_excinfo[reproptions2] PASSED [ 71%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_format_excinfo[reproptions3] PASSED [ 71%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_format_excinfo[reproptions4] PASSED [ 71%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_format_excinfo[reproptions5] PASSED [ 71%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_format_excinfo[reproptions6] PASSED [ 71%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_format_excinfo[reproptions7] PASSED [ 71%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_format_excinfo[reproptions8] PASSED [ 71%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_format_excinfo[reproptions9] PASSED [ 72%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_format_excinfo[reproptions10] PASSED [ 72%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_format_excinfo[reproptions11] PASSED [ 72%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_format_excinfo[reproptions12] PASSED [ 72%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_format_excinfo[reproptions13] PASSED [ 72%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_format_excinfo[reproptions14] PASSED [ 72%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_format_excinfo[reproptions15] PASSED [ 72%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_format_excinfo[reproptions16] PASSED [ 72%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_format_excinfo[reproptions17] PASSED [ 72%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_format_excinfo[reproptions18] PASSED [ 72%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_format_excinfo[reproptions19] PASSED [ 72%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_format_excinfo[reproptions20] PASSED [ 72%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_format_excinfo[reproptions21] PASSED [ 72%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_format_excinfo[reproptions22] PASSED [ 72%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_format_excinfo[reproptions23] PASSED [ 72%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_traceback_repr_style PASSED [ 72%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_exc_chain_repr PASSED [ 72%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_exc_repr_chain_suppression[from_none] PASSED [ 72%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_exc_repr_chain_suppression[explicit_suppress] PASSED [ 72%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_exc_chain_repr_without_traceback[cause-The above exception was the direct cause of the following exception:] PASSED [ 72%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_exc_chain_repr_without_traceback[context-During handling of the above exception, another exception occurred:] PASSED [ 72%] testing/code/test_excinfo.py::TestFormattedExcinfo::test_exc_chain_repr_cycle PASSED [ 72%] testing/code/test_excinfo.py::test_repr_traceback_with_unicode[None-short] PASSED [ 73%] testing/code/test_excinfo.py::test_repr_traceback_with_unicode[None-long] PASSED [ 73%] testing/code/test_excinfo.py::test_repr_traceback_with_unicode[utf8-short] PASSED [ 73%] testing/code/test_excinfo.py::test_repr_traceback_with_unicode[utf8-long] PASSED [ 73%] testing/code/test_excinfo.py::test_repr_traceback_with_unicode[utf16-short] PASSED [ 73%] testing/code/test_excinfo.py::test_repr_traceback_with_unicode[utf16-long] PASSED [ 73%] testing/code/test_excinfo.py::test_cwd_deleted FAILED [ 73%] testing/code/test_excinfo.py::test_exception_repr_extraction_error_on_recursion PASSED [ 73%] testing/code/test_excinfo.py::test_no_recursion_index_on_recursion_error PASSED [ 73%] testing/code/test_source.py::test_source_str_function PASSED [ 73%] testing/code/test_source.py::test_unicode PASSED [ 73%] testing/code/test_source.py::test_source_from_function PASSED [ 73%] testing/code/test_source.py::test_source_from_method PASSED [ 73%] testing/code/test_source.py::test_source_from_lines PASSED [ 73%] testing/code/test_source.py::test_source_from_inner_function PASSED [ 73%] testing/code/test_source.py::test_source_putaround_simple PASSED [ 73%] testing/code/test_source.py::test_source_putaround PASSED [ 73%] testing/code/test_source.py::test_source_strips PASSED [ 73%] testing/code/test_source.py::test_source_strip_multiline PASSED [ 73%] testing/code/test_source.py::test_syntaxerror_rerepresentation PASSED [ 73%] testing/code/test_source.py::test_isparseable PASSED [ 73%] testing/code/test_source.py::TestAccesses::test_getrange PASSED [ 73%] testing/code/test_source.py::TestAccesses::test_getline PASSED [ 74%] testing/code/test_source.py::TestAccesses::test_len PASSED [ 74%] testing/code/test_source.py::TestAccesses::test_iter PASSED [ 74%] testing/code/test_source.py::TestSourceParsingAndCompiling::test_compile PASSED [ 74%] testing/code/test_source.py::TestSourceParsingAndCompiling::test_compile_and_getsource_simple PASSED [ 74%] testing/code/test_source.py::TestSourceParsingAndCompiling::test_compile_and_getsource_through_same_function PASSED [ 74%] testing/code/test_source.py::TestSourceParsingAndCompiling::test_getstatement PASSED [ 74%] testing/code/test_source.py::TestSourceParsingAndCompiling::test_getstatementrange_triple_quoted PASSED [ 74%] testing/code/test_source.py::TestSourceParsingAndCompiling::test_getstatementrange_within_constructs PASSED [ 74%] testing/code/test_source.py::TestSourceParsingAndCompiling::test_getstatementrange_bug PASSED [ 74%] testing/code/test_source.py::TestSourceParsingAndCompiling::test_getstatementrange_bug2 PASSED [ 74%] testing/code/test_source.py::TestSourceParsingAndCompiling::test_getstatementrange_ast_issue58 PASSED [ 74%] testing/code/test_source.py::TestSourceParsingAndCompiling::test_getstatementrange_out_of_bounds_py3 PASSED [ 74%] testing/code/test_source.py::TestSourceParsingAndCompiling::test_getstatementrange_with_syntaxerror_issue7 PASSED [ 74%] testing/code/test_source.py::TestSourceParsingAndCompiling::test_compile_to_ast PASSED [ 74%] testing/code/test_source.py::TestSourceParsingAndCompiling::test_compile_and_getsource PASSED [ 74%] testing/code/test_source.py::TestSourceParsingAndCompiling::test_compilefuncs_and_path_sanity[] PASSED [ 74%] testing/code/test_source.py::TestSourceParsingAndCompiling::test_compilefuncs_and_path_sanity[None] PASSED [ 74%] testing/code/test_source.py::TestSourceParsingAndCompiling::test_compilefuncs_and_path_sanity[my] PASSED [ 74%] testing/code/test_source.py::TestSourceParsingAndCompiling::test_offsetless_synerr PASSED [ 74%] testing/code/test_source.py::test_getstartingblock_singleline PASSED [ 74%] testing/code/test_source.py::test_getline_finally PASSED [ 74%] testing/code/test_source.py::test_getfuncsource_dynamic PASSED [ 74%] testing/code/test_source.py::test_getfuncsource_with_multine_string PASSED [ 75%] testing/code/test_source.py::test_deindent PASSED [ 75%] testing/code/test_source.py::test_source_of_class_at_eof_without_newline PASSED [ 75%] testing/code/test_source.py::test_getsource_fallback PASSED [ 75%] testing/code/test_source.py::test_idem_compile_and_getsource PASSED [ 75%] testing/code/test_source.py::test_findsource_fallback PASSED [ 75%] testing/code/test_source.py::test_findsource PASSED [ 75%] testing/code/test_source.py::test_getfslineno PASSED [ 75%] testing/code/test_source.py::test_code_of_object_instance_with_call PASSED [ 75%] testing/code/test_source.py::test_oneline PASSED [ 75%] testing/code/test_source.py::test_comment_and_no_newline_at_end PASSED [ 75%] testing/code/test_source.py::test_oneline_and_comment PASSED [ 75%] testing/code/test_source.py::test_comments PASSED [ 75%] testing/code/test_source.py::test_comment_in_statement PASSED [ 75%] testing/code/test_source.py::test_single_line_else PASSED [ 75%] testing/code/test_source.py::test_single_line_finally PASSED [ 75%] testing/code/test_source.py::test_issue55 PASSED [ 75%] testing/code/test_source.py::test_multiline PASSED [ 75%] testing/code/test_source.py::TestTry::test_body PASSED [ 75%] testing/code/test_source.py::TestTry::test_except_line PASSED [ 75%] testing/code/test_source.py::TestTry::test_except_body PASSED [ 75%] testing/code/test_source.py::TestTry::test_else PASSED [ 75%] testing/code/test_source.py::TestTryFinally::test_body PASSED [ 76%] testing/code/test_source.py::TestTryFinally::test_finally PASSED [ 76%] testing/code/test_source.py::TestIf::test_body PASSED [ 76%] testing/code/test_source.py::TestIf::test_elif_clause PASSED [ 76%] testing/code/test_source.py::TestIf::test_elif PASSED [ 76%] testing/code/test_source.py::TestIf::test_else PASSED [ 76%] testing/code/test_source.py::test_semicolon PASSED [ 76%] testing/code/test_source.py::test_def_online PASSED [ 76%] testing/code/test_source.py::test_getstartingblock_multiline PASSED [ 76%] testing/examples/test_issue519.py::test_510 PASSED [ 76%] testing/freeze/tests/test_doctest.txt::test_doctest.txt PASSED [ 76%] testing/freeze/tests/test_trivial.py::test_upper PASSED [ 76%] testing/freeze/tests/test_trivial.py::test_lower PASSED [ 76%] testing/logging/test_fixture.py::test_fixture_help FAILED [ 76%] testing/logging/test_fixture.py::test_change_level PASSED [ 76%] testing/logging/test_fixture.py::test_change_level_undo FAILED [ 76%] testing/logging/test_fixture.py::test_with_statement PASSED [ 76%] testing/logging/test_fixture.py::test_log_access PASSED [ 76%] testing/logging/test_fixture.py::test_messages PASSED [ 76%] testing/logging/test_fixture.py::test_record_tuples PASSED [ 76%] testing/logging/test_fixture.py::test_unicode PASSED [ 76%] testing/logging/test_fixture.py::test_clear PASSED [ 76%] testing/logging/test_fixture.py::test_caplog_captures_for_all_stages PASSED [ 77%] testing/logging/test_formatter.py::test_coloredlogformatter PASSED [ 77%] testing/logging/test_reporting.py::test_nothing_logged FAILED [ 77%] testing/logging/test_reporting.py::test_messages_logged FAILED [ 77%] testing/logging/test_reporting.py::test_root_logger_affected FAILED [ 77%] testing/logging/test_reporting.py::test_log_cli_level_log_level_interaction FAILED [ 77%] testing/logging/test_reporting.py::test_setup_logging FAILED [ 77%] testing/logging/test_reporting.py::test_teardown_logging FAILED [ 77%] testing/logging/test_reporting.py::test_disable_log_capturing FAILED [ 77%] testing/logging/test_reporting.py::test_disable_log_capturing_ini FAILED [ 77%] testing/logging/test_reporting.py::test_log_cli_enabled_disabled[True] FAILED [ 77%] testing/logging/test_reporting.py::test_log_cli_enabled_disabled[False] PASSED [ 77%] testing/logging/test_reporting.py::test_log_cli_default_level FAILED [ 77%] testing/logging/test_reporting.py::test_log_cli_default_level_multiple_tests FAILED [ 77%] testing/logging/test_reporting.py::test_log_cli_default_level_sections FAILED [ 77%] testing/logging/test_reporting.py::test_live_logs_unknown_sections FAILED [ 77%] testing/logging/test_reporting.py::test_sections_single_new_line_after_test_outcome FAILED [ 77%] testing/logging/test_reporting.py::test_log_cli_level FAILED [ 77%] testing/logging/test_reporting.py::test_log_cli_ini_level FAILED [ 77%] testing/logging/test_reporting.py::test_log_cli_auto_enable[] FAILED [ 77%] testing/logging/test_reporting.py::test_log_cli_auto_enable[--log-level=WARNING] FAILED [ 77%] testing/logging/test_reporting.py::test_log_cli_auto_enable[--log-file-level=WARNING] FAILED [ 77%] testing/logging/test_reporting.py::test_log_cli_auto_enable[--log-cli-level=WARNING] FAILED [ 77%] testing/logging/test_reporting.py::test_log_file_cli FAILED [ 78%] testing/logging/test_reporting.py::test_log_file_cli_level FAILED [ 78%] testing/logging/test_reporting.py::test_log_level_not_changed_by_default FAILED [ 78%] testing/logging/test_reporting.py::test_log_file_ini FAILED [ 78%] testing/logging/test_reporting.py::test_log_file_ini_level FAILED [ 78%] testing/logging/test_reporting.py::test_log_file_unicode FAILED [ 78%] testing/logging/test_reporting.py::test_live_logging_suspends_capture[True] PASSED [ 78%] testing/logging/test_reporting.py::test_live_logging_suspends_capture[False] PASSED [ 78%] testing/logging/test_reporting.py::test_collection_live_logging FAILED [ 78%] testing/logging/test_reporting.py::test_collection_logging_to_file FAILED [ 78%] testing/logging/test_reporting.py::test_log_in_hooks FAILED [ 78%] testing/python/approx.py::TestApprox::test_repr_string PASSED [ 78%] testing/python/approx.py::TestApprox::test_repr_nd_array[5.0-approx(5.0 {pm} 5.0e-06)] PASSED [ 78%] testing/python/approx.py::TestApprox::test_repr_nd_array[value1-approx([5.0 {pm} 5.0e-06])] PASSED [ 78%] testing/python/approx.py::TestApprox::test_repr_nd_array[value2-approx([[5.0 {pm} 5.0e-06]])] PASSED [ 78%] testing/python/approx.py::TestApprox::test_repr_nd_array[value3-approx([[5.0 {pm} 5.0e-06, 6.0 {pm} 6.0e-06]])] PASSED [ 78%] testing/python/approx.py::TestApprox::test_repr_nd_array[value4-approx([[5.0 {pm} 5.0e-06], [6.0 {pm} 6.0e-06]])] PASSED [ 78%] testing/python/approx.py::TestApprox::test_operator_overloading PASSED [ 78%] testing/python/approx.py::TestApprox::test_exactly_equal PASSED [ 78%] testing/python/approx.py::TestApprox::test_opposite_sign PASSED [ 78%] testing/python/approx.py::TestApprox::test_zero_tolerance PASSED [ 78%] testing/python/approx.py::TestApprox::test_negative_tolerance PASSED [ 78%] testing/python/approx.py::TestApprox::test_inf_tolerance PASSED [ 79%] testing/python/approx.py::TestApprox::test_inf_tolerance_expecting_zero PASSED [ 79%] testing/python/approx.py::TestApprox::test_nan_tolerance PASSED [ 79%] testing/python/approx.py::TestApprox::test_reasonable_defaults PASSED [ 79%] testing/python/approx.py::TestApprox::test_default_tolerances PASSED [ 79%] testing/python/approx.py::TestApprox::test_custom_tolerances PASSED [ 79%] testing/python/approx.py::TestApprox::test_relative_tolerance PASSED [ 79%] testing/python/approx.py::TestApprox::test_absolute_tolerance PASSED [ 79%] testing/python/approx.py::TestApprox::test_expecting_zero PASSED [ 79%] testing/python/approx.py::TestApprox::test_expecting_inf PASSED [ 79%] testing/python/approx.py::TestApprox::test_expecting_nan PASSED [ 79%] testing/python/approx.py::TestApprox::test_int PASSED [ 79%] testing/python/approx.py::TestApprox::test_decimal PASSED [ 79%] testing/python/approx.py::TestApprox::test_fraction PASSED [ 79%] testing/python/approx.py::TestApprox::test_complex PASSED [ 79%] testing/python/approx.py::TestApprox::test_list PASSED [ 79%] testing/python/approx.py::TestApprox::test_list_wrong_len PASSED [ 79%] testing/python/approx.py::TestApprox::test_tuple PASSED [ 79%] testing/python/approx.py::TestApprox::test_tuple_wrong_len PASSED [ 79%] testing/python/approx.py::TestApprox::test_dict PASSED [ 79%] testing/python/approx.py::TestApprox::test_dict_wrong_len PASSED [ 79%] testing/python/approx.py::TestApprox::test_numpy_array PASSED [ 79%] testing/python/approx.py::TestApprox::test_numpy_tolerance_args PASSED [ 80%] testing/python/approx.py::TestApprox::test_numpy_expecting_nan PASSED [ 80%] testing/python/approx.py::TestApprox::test_numpy_expecting_inf PASSED [ 80%] testing/python/approx.py::TestApprox::test_numpy_array_wrong_shape PASSED [ 80%] testing/python/approx.py::TestApprox::test_doctests PASSED [ 80%] testing/python/approx.py::TestApprox::test_unicode_plus_minus FAILED [ 80%] testing/python/approx.py::TestApprox::test_expected_value_type_error[None] PASSED [ 80%] testing/python/approx.py::TestApprox::test_expected_value_type_error[string] PASSED [ 80%] testing/python/approx.py::TestApprox::test_expected_value_type_error[nested-str] PASSED [ 80%] testing/python/approx.py::TestApprox::test_expected_value_type_error[nested-list] PASSED [ 80%] testing/python/approx.py::TestApprox::test_expected_value_type_error[dict-with-string] PASSED [ 80%] testing/python/approx.py::TestApprox::test_expected_value_type_error[nested-dict] PASSED [ 80%] testing/python/approx.py::TestApprox::test_comparison_operator_type_error[<=] PASSED [ 80%] testing/python/approx.py::TestApprox::test_comparison_operator_type_error[<] PASSED [ 80%] testing/python/approx.py::TestApprox::test_comparison_operator_type_error[>=] PASSED [ 80%] testing/python/approx.py::TestApprox::test_comparison_operator_type_error[>] PASSED [ 80%] testing/python/approx.py::TestApprox::test_numpy_array_with_scalar PASSED [ 80%] testing/python/approx.py::TestApprox::test_numpy_scalar_with_array PASSED [ 80%] testing/python/collect.py::TestModule::test_failing_import FAILED [ 80%] testing/python/collect.py::TestModule::test_import_duplicate FAILED [ 80%] testing/python/collect.py::TestModule::test_import_prepend_append FAILED [ 80%] testing/python/collect.py::TestModule::test_syntax_error_in_module FAILED [ 80%] testing/python/collect.py::TestModule::test_module_considers_pluginmanager_at_import FAILED [ 80%] testing/python/collect.py::TestModule::test_invalid_test_module_name FAILED [ 81%] testing/python/collect.py::TestModule::test_show_traceback_import_error[0] FAILED [ 81%] testing/python/collect.py::TestModule::test_show_traceback_import_error[1] FAILED [ 81%] testing/python/collect.py::TestModule::test_show_traceback_import_error[2] FAILED [ 81%] testing/python/collect.py::TestModule::test_show_traceback_import_error_unicode FAILED [ 81%] testing/python/collect.py::TestClass::test_class_with_init_warning FAILED [ 81%] testing/python/collect.py::TestClass::test_class_subclassobject FAILED [ 81%] testing/python/collect.py::TestClass::test_static_method FAILED [ 81%] testing/python/collect.py::TestClass::test_setup_teardown_class_as_classmethod FAILED [ 81%] testing/python/collect.py::TestClass::test_issue1035_obj_has_getattr FAILED [ 81%] testing/python/collect.py::TestClass::test_issue1579_namedtuple FAILED [ 81%] testing/python/collect.py::TestClass::test_issue2234_property FAILED [ 81%] testing/python/collect.py::TestGenerator::test_generative_functions FAILED [ 81%] testing/python/collect.py::TestGenerator::test_generative_methods FAILED [ 81%] testing/python/collect.py::TestGenerator::test_generative_functions_with_explicit_names FAILED [ 81%] testing/python/collect.py::TestGenerator::test_generative_functions_unique_explicit_names FAILED [ 81%] testing/python/collect.py::TestGenerator::test_generative_methods_with_explicit_names FAILED [ 81%] testing/python/collect.py::TestGenerator::test_order_of_execution_generator_same_codeline FAILED [ 81%] testing/python/collect.py::TestGenerator::test_order_of_execution_generator_different_codeline FAILED [ 81%] testing/python/collect.py::TestGenerator::test_setupstate_is_preserved_134 FAILED [ 81%] testing/python/collect.py::TestFunction::test_getmodulecollector FAILED [ 81%] testing/python/collect.py::TestFunction::test_function_as_object_instance_ignored PASSED [ 81%] testing/python/collect.py::TestFunction::test_function_equality FAILED [ 82%] testing/python/collect.py::TestFunction::test_issue197_parametrize_emptyset FAILED [ 82%] testing/python/collect.py::TestFunction::test_single_tuple_unwraps_values FAILED [ 82%] testing/python/collect.py::TestFunction::test_issue213_parametrize_value_no_equal FAILED [ 82%] testing/python/collect.py::TestFunction::test_parametrize_with_non_hashable_values FAILED [ 82%] testing/python/collect.py::TestFunction::test_parametrize_with_non_hashable_values_indirect FAILED [ 82%] testing/python/collect.py::TestFunction::test_parametrize_overrides_fixture FAILED [ 82%] testing/python/collect.py::TestFunction::test_parametrize_overrides_parametrized_fixture FAILED [ 82%] testing/python/collect.py::TestFunction::test_parametrize_overrides_indirect_dependency_fixture FAILED [ 82%] testing/python/collect.py::TestFunction::test_parametrize_with_mark FAILED [ 82%] testing/python/collect.py::TestFunction::test_function_equality_with_callspec FAILED [ 82%] testing/python/collect.py::TestFunction::test_pyfunc_call FAILED [ 82%] testing/python/collect.py::TestFunction::test_multiple_parametrize FAILED [ 82%] testing/python/collect.py::TestFunction::test_issue751_multiple_parametrize_with_ids FAILED [ 82%] testing/python/collect.py::TestFunction::test_parametrize_skipif FAILED [ 82%] testing/python/collect.py::TestFunction::test_parametrize_skip FAILED [ 82%] testing/python/collect.py::TestFunction::test_parametrize_skipif_no_skip FAILED [ 82%] testing/python/collect.py::TestFunction::test_parametrize_xfail FAILED [ 82%] testing/python/collect.py::TestFunction::test_parametrize_passed FAILED [ 82%] testing/python/collect.py::TestFunction::test_parametrize_xfail_passed FAILED [ 82%] testing/python/collect.py::TestFunction::test_function_original_name FAILED [ 82%] testing/python/collect.py::TestSorting::test_check_equality FAILED [ 82%] testing/python/collect.py::TestSorting::test_allow_sane_sorting_for_decorators FAILED [ 82%] testing/python/collect.py::TestConftestCustomization::test_pytest_pycollect_module FAILED [ 83%] testing/python/collect.py::TestConftestCustomization::test_customized_pymakemodule_issue205_subdir FAILED [ 83%] testing/python/collect.py::TestConftestCustomization::test_customized_pymakeitem FAILED [ 83%] testing/python/collect.py::TestConftestCustomization::test_pytest_pycollect_makeitem FAILED [ 83%] testing/python/collect.py::TestConftestCustomization::test_makeitem_non_underscore FAILED [ 83%] testing/python/collect.py::TestConftestCustomization::test_issue2369_collect_module_fileext PASSED [ 83%] testing/python/collect.py::test_setup_only_available_in_subdir FAILED [ 83%] testing/python/collect.py::test_modulecol_roundtrip FAILED [ 83%] testing/python/collect.py::TestTracebackCutting::test_skip_simple PASSED [ 83%] testing/python/collect.py::TestTracebackCutting::test_traceback_argsetup FAILED [ 83%] testing/python/collect.py::TestTracebackCutting::test_traceback_error_during_import FAILED [ 83%] testing/python/collect.py::TestTracebackCutting::test_traceback_filter_error_during_fixture_collection FAILED [ 83%] testing/python/collect.py::TestTracebackCutting::test_filter_traceback_generated_code PASSED [ 83%] testing/python/collect.py::TestTracebackCutting::test_filter_traceback_path_no_longer_valid PASSED [ 83%] testing/python/collect.py::TestReportInfo::test_itemreport_reportinfo FAILED [ 83%] testing/python/collect.py::TestReportInfo::test_func_reportinfo FAILED [ 83%] testing/python/collect.py::TestReportInfo::test_class_reportinfo FAILED [ 83%] testing/python/collect.py::TestReportInfo::test_generator_reportinfo FAILED [ 83%] testing/python/collect.py::TestReportInfo::test_reportinfo_with_nasty_getattr FAILED [ 83%] testing/python/collect.py::test_customized_python_discovery FAILED [ 83%] testing/python/collect.py::test_customized_python_discovery_functions FAILED [ 83%] testing/python/collect.py::test_collector_attributes FAILED [ 83%] testing/python/collect.py::test_customize_through_attributes FAILED [ 84%] testing/python/collect.py::test_unorderable_types FAILED [ 84%] testing/python/collect.py::test_collect_functools_partial FAILED [ 84%] testing/python/collect.py::test_dont_collect_non_function_callable PASSED [ 84%] testing/python/collect.py::test_class_injection_does_not_break_collection FAILED [ 84%] testing/python/collect.py::test_syntax_error_with_non_ascii_chars FAILED [ 84%] testing/python/collect.py::test_skip_duplicates_by_default FAILED [ 84%] testing/python/collect.py::test_keep_duplicates FAILED [ 84%] testing/python/collect.py::test_package_collection_infinite_recursion FAILED [ 84%] testing/python/collect.py::test_package_collection_init_given_as_argument FAILED [ 84%] testing/python/collect.py::test_package_with_modules FAILED [ 84%] testing/python/collect.py::test_package_ordering FAILED [ 84%] testing/python/fixture.py::test_getfuncargnames PASSED [ 84%] testing/python/fixture.py::TestFillFixtures::test_fillfuncargs_exposed PASSED [ 84%] testing/python/fixture.py::TestFillFixtures::test_funcarg_lookupfails FAILED [ 84%] testing/python/fixture.py::TestFillFixtures::test_detect_recursive_dependency_error FAILED [ 84%] testing/python/fixture.py::TestFillFixtures::test_funcarg_basic FAILED [ 84%] testing/python/fixture.py::TestFillFixtures::test_funcarg_lookup_modulelevel FAILED [ 84%] testing/python/fixture.py::TestFillFixtures::test_funcarg_lookup_classlevel FAILED [ 84%] testing/python/fixture.py::TestFillFixtures::test_conftest_funcargs_only_available_in_subdir FAILED [ 84%] testing/python/fixture.py::TestFillFixtures::test_extend_fixture_module_class FAILED [ 84%] testing/python/fixture.py::TestFillFixtures::test_extend_fixture_conftest_module FAILED [ 84%] testing/python/fixture.py::TestFillFixtures::test_extend_fixture_conftest_conftest FAILED [ 85%] testing/python/fixture.py::TestFillFixtures::test_extend_fixture_conftest_plugin FAILED [ 85%] testing/python/fixture.py::TestFillFixtures::test_extend_fixture_plugin_plugin FAILED [ 85%] testing/python/fixture.py::TestFillFixtures::test_override_parametrized_fixture_conftest_module FAILED [ 85%] testing/python/fixture.py::TestFillFixtures::test_override_parametrized_fixture_conftest_conftest FAILED [ 85%] testing/python/fixture.py::TestFillFixtures::test_override_non_parametrized_fixture_conftest_module FAILED [ 85%] testing/python/fixture.py::TestFillFixtures::test_override_non_parametrized_fixture_conftest_conftest FAILED [ 85%] testing/python/fixture.py::TestFillFixtures::test_override_autouse_fixture_with_parametrized_fixture_conftest_conftest FAILED [ 85%] testing/python/fixture.py::TestFillFixtures::test_autouse_fixture_plugin FAILED [ 85%] testing/python/fixture.py::TestFillFixtures::test_funcarg_lookup_error FAILED [ 85%] testing/python/fixture.py::TestFillFixtures::test_fixture_excinfo_leak FAILED [ 85%] testing/python/fixture.py::TestRequestBasic::test_request_attributes FAILED [ 85%] testing/python/fixture.py::TestRequestBasic::test_request_attributes_method FAILED [ 85%] testing/python/fixture.py::TestRequestBasic::test_request_contains_funcarg_arg2fixturedefs FAILED [ 85%] testing/python/fixture.py::TestRequestBasic::test_getfixturevalue_recursive FAILED [ 85%] testing/python/fixture.py::TestRequestBasic::test_getfixturevalue[getfixturevalue] FAILED [ 85%] testing/python/fixture.py::TestRequestBasic::test_getfixturevalue[getfuncargvalue] FAILED [ 85%] testing/python/fixture.py::TestRequestBasic::test_request_addfinalizer FAILED [ 85%] testing/python/fixture.py::TestRequestBasic::test_mark_as_fixture_with_prefix_and_decorator_fails PASSED [ 85%] testing/python/fixture.py::TestRequestBasic::test_request_addfinalizer_failing_setup FAILED [ 85%] testing/python/fixture.py::TestRequestBasic::test_request_addfinalizer_failing_setup_module FAILED [ 85%] testing/python/fixture.py::TestRequestBasic::test_request_addfinalizer_partial_setup_failure FAILED [ 85%] testing/python/fixture.py::TestRequestBasic::test_request_subrequest_addfinalizer_exceptions FAILED [ 85%] testing/python/fixture.py::TestRequestBasic::test_request_getmodulepath FAILED [ 86%] testing/python/fixture.py::TestRequestBasic::test_request_fixturenames FAILED [ 86%] testing/python/fixture.py::TestRequestBasic::test_request_fixturenames_dynamic_fixture FAILED [ 86%] testing/python/fixture.py::TestRequestBasic::test_funcargnames_compatattr FAILED [ 86%] testing/python/fixture.py::TestRequestBasic::test_setupdecorator_and_xunit FAILED [ 86%] testing/python/fixture.py::TestRequestBasic::test_fixtures_sub_subdir_normalize_sep FAILED [ 86%] testing/python/fixture.py::TestRequestBasic::test_show_fixtures_color_yes FAILED [ 86%] testing/python/fixture.py::TestRequestBasic::test_newstyle_with_request FAILED [ 86%] testing/python/fixture.py::TestRequestBasic::test_setupcontext_no_param FAILED [ 86%] testing/python/fixture.py::TestRequestMarking::test_applymarker FAILED [ 86%] testing/python/fixture.py::TestRequestMarking::test_accesskeywords FAILED [ 86%] testing/python/fixture.py::TestRequestMarking::test_accessmarker_dynamic FAILED [ 86%] testing/python/fixture.py::TestRequestCachedSetup::test_request_cachedsetup_defaultmodule FAILED [ 86%] testing/python/fixture.py::TestRequestCachedSetup::test_request_cachedsetup_class FAILED [ 86%] testing/python/fixture.py::TestRequestCachedSetup::test_request_cachedsetup_extrakey FAILED [ 86%] testing/python/fixture.py::TestRequestCachedSetup::test_request_cachedsetup_cache_deletion FAILED [ 86%] testing/python/fixture.py::TestRequestCachedSetup::test_request_cached_setup_two_args FAILED [ 86%] testing/python/fixture.py::TestRequestCachedSetup::test_request_cached_setup_getfixturevalue FAILED [ 86%] testing/python/fixture.py::TestRequestCachedSetup::test_request_cached_setup_functional FAILED [ 86%] testing/python/fixture.py::TestRequestCachedSetup::test_issue117_sessionscopeteardown FAILED [ 86%] testing/python/fixture.py::TestFixtureUsages::test_noargfixturedec FAILED [ 86%] testing/python/fixture.py::TestFixtureUsages::test_receives_funcargs FAILED [ 86%] testing/python/fixture.py::TestFixtureUsages::test_receives_funcargs_scope_mismatch FAILED [ 87%] testing/python/fixture.py::TestFixtureUsages::test_receives_funcargs_scope_mismatch_issue660 FAILED [ 87%] testing/python/fixture.py::TestFixtureUsages::test_invalid_scope FAILED [ 87%] testing/python/fixture.py::TestFixtureUsages::test_funcarg_parametrized_and_used_twice FAILED [ 87%] testing/python/fixture.py::TestFixtureUsages::test_factory_uses_unknown_funcarg_as_dependency_error FAILED [ 87%] testing/python/fixture.py::TestFixtureUsages::test_factory_setup_as_classes_fails FAILED [ 87%] testing/python/fixture.py::TestFixtureUsages::test_request_can_be_overridden FAILED [ 87%] testing/python/fixture.py::TestFixtureUsages::test_usefixtures_marker FAILED [ 87%] testing/python/fixture.py::TestFixtureUsages::test_usefixtures_ini FAILED [ 87%] testing/python/fixture.py::TestFixtureUsages::test_usefixtures_seen_in_showmarkers FAILED [ 87%] testing/python/fixture.py::TestFixtureUsages::test_request_instance_issue203 FAILED [ 87%] testing/python/fixture.py::TestFixtureUsages::test_fixture_parametrized_with_iterator FAILED [ 87%] testing/python/fixture.py::TestFixtureManagerParseFactories::test_parsefactories_evil_objects_issue214 FAILED [ 87%] testing/python/fixture.py::TestFixtureManagerParseFactories::test_parsefactories_conftest FAILED [ 87%] testing/python/fixture.py::TestFixtureManagerParseFactories::test_parsefactories_conftest_and_module_and_class FAILED [ 87%] testing/python/fixture.py::TestFixtureManagerParseFactories::test_parsefactories_relative_node_ids FAILED [ 87%] testing/python/fixture.py::TestFixtureManagerParseFactories::test_package_xunit_fixture FAILED [ 87%] testing/python/fixture.py::TestFixtureManagerParseFactories::test_package_fixture_complex FAILED [ 87%] testing/python/fixture.py::TestFixtureManagerParseFactories::test_collect_custom_items FAILED [ 87%] testing/python/fixture.py::TestAutouseDiscovery::test_parsefactories_conftest FAILED [ 87%] testing/python/fixture.py::TestAutouseDiscovery::test_two_classes_separated_autouse FAILED [ 87%] testing/python/fixture.py::TestAutouseDiscovery::test_setup_at_classlevel FAILED [ 87%] testing/python/fixture.py::TestAutouseDiscovery::test_setup_enabled_functionnode xfail [ 88%] testing/python/fixture.py::TestAutouseDiscovery::test_callables_nocode FAILED [ 88%] testing/python/fixture.py::TestAutouseDiscovery::test_autouse_in_conftests FAILED [ 88%] testing/python/fixture.py::TestAutouseDiscovery::test_autouse_in_module_and_two_classes FAILED [ 88%] testing/python/fixture.py::TestAutouseManagement::test_autouse_conftest_mid_directory FAILED [ 88%] testing/python/fixture.py::TestAutouseManagement::test_autouse_honored_for_yield FAILED [ 88%] testing/python/fixture.py::TestAutouseManagement::test_funcarg_and_setup FAILED [ 88%] testing/python/fixture.py::TestAutouseManagement::test_uses_parametrized_resource FAILED [ 88%] testing/python/fixture.py::TestAutouseManagement::test_session_parametrized_function FAILED [ 88%] testing/python/fixture.py::TestAutouseManagement::test_class_function_parametrization_finalization FAILED [ 88%] testing/python/fixture.py::TestAutouseManagement::test_scope_ordering FAILED [ 88%] testing/python/fixture.py::TestAutouseManagement::test_parametrization_setup_teardown_ordering FAILED [ 88%] testing/python/fixture.py::TestAutouseManagement::test_ordering_autouse_before_explicit FAILED [ 88%] testing/python/fixture.py::TestAutouseManagement::test_ordering_dependencies_torndown_first[p10-p00] FAILED [ 88%] testing/python/fixture.py::TestAutouseManagement::test_ordering_dependencies_torndown_first[p10-p01] FAILED [ 88%] testing/python/fixture.py::TestAutouseManagement::test_ordering_dependencies_torndown_first[p11-p00] FAILED [ 88%] testing/python/fixture.py::TestAutouseManagement::test_ordering_dependencies_torndown_first[p11-p01] FAILED [ 88%] testing/python/fixture.py::TestFixtureMarker::test_parametrize FAILED [ 88%] testing/python/fixture.py::TestFixtureMarker::test_multiple_parametrization_issue_736 FAILED [ 88%] testing/python/fixture.py::TestFixtureMarker::test_override_parametrized_fixture_issue_979['fixt, val'] FAILED [ 88%] testing/python/fixture.py::TestFixtureMarker::test_override_parametrized_fixture_issue_979['fixt,val'] FAILED [ 88%] testing/python/fixture.py::TestFixtureMarker::test_override_parametrized_fixture_issue_979[['fixt', 'val']] FAILED [ 88%] testing/python/fixture.py::TestFixtureMarker::test_override_parametrized_fixture_issue_979[('fixt', 'val')] FAILED [ 88%] testing/python/fixture.py::TestFixtureMarker::test_scope_session FAILED [ 89%] testing/python/fixture.py::TestFixtureMarker::test_scope_session_exc FAILED [ 89%] testing/python/fixture.py::TestFixtureMarker::test_scope_session_exc_two_fix FAILED [ 89%] testing/python/fixture.py::TestFixtureMarker::test_scope_exc FAILED [ 89%] testing/python/fixture.py::TestFixtureMarker::test_scope_module_uses_session FAILED [ 89%] testing/python/fixture.py::TestFixtureMarker::test_scope_module_and_finalizer FAILED [ 89%] testing/python/fixture.py::TestFixtureMarker::test_scope_mismatch_various[getfixturevalue] FAILED [ 89%] testing/python/fixture.py::TestFixtureMarker::test_scope_mismatch_various[cached_setup] FAILED [ 89%] testing/python/fixture.py::TestFixtureMarker::test_register_only_with_mark FAILED [ 89%] testing/python/fixture.py::TestFixtureMarker::test_parametrize_and_scope FAILED [ 89%] testing/python/fixture.py::TestFixtureMarker::test_scope_mismatch FAILED [ 89%] testing/python/fixture.py::TestFixtureMarker::test_parametrize_separated_order FAILED [ 89%] testing/python/fixture.py::TestFixtureMarker::test_module_parametrized_ordering FAILED [ 89%] testing/python/fixture.py::TestFixtureMarker::test_dynamic_parametrized_ordering FAILED [ 89%] testing/python/fixture.py::TestFixtureMarker::test_class_ordering FAILED [ 89%] testing/python/fixture.py::TestFixtureMarker::test_parametrize_separated_order_higher_scope_first FAILED [ 89%] testing/python/fixture.py::TestFixtureMarker::test_parametrized_fixture_teardown_order FAILED [ 89%] testing/python/fixture.py::TestFixtureMarker::test_fixture_finalizer FAILED [ 89%] testing/python/fixture.py::TestFixtureMarker::test_class_scope_with_normal_tests FAILED [ 89%] testing/python/fixture.py::TestFixtureMarker::test_request_is_clean FAILED [ 89%] testing/python/fixture.py::TestFixtureMarker::test_parametrize_separated_lifecycle FAILED [ 89%] testing/python/fixture.py::TestFixtureMarker::test_parametrize_function_scoped_finalizers_called FAILED [ 89%] testing/python/fixture.py::TestFixtureMarker::test_finalizer_order_on_parametrization[session] FAILED [ 90%] testing/python/fixture.py::TestFixtureMarker::test_finalizer_order_on_parametrization[function] FAILED [ 90%] testing/python/fixture.py::TestFixtureMarker::test_finalizer_order_on_parametrization[module] FAILED [ 90%] testing/python/fixture.py::TestFixtureMarker::test_class_scope_parametrization_ordering FAILED [ 90%] testing/python/fixture.py::TestFixtureMarker::test_parametrize_setup_function FAILED [ 90%] testing/python/fixture.py::TestFixtureMarker::test_fixture_marked_function_not_collected_as_test FAILED [ 90%] testing/python/fixture.py::TestFixtureMarker::test_params_and_ids FAILED [ 90%] testing/python/fixture.py::TestFixtureMarker::test_params_and_ids_yieldfixture FAILED [ 90%] testing/python/fixture.py::TestFixtureMarker::test_deterministic_fixture_collection PASSED [ 90%] testing/python/fixture.py::TestRequestScopeAccess::test_setup[session--fspath class function module] FAILED [ 90%] testing/python/fixture.py::TestRequestScopeAccess::test_setup[module-module fspath-cls function] FAILED [ 90%] testing/python/fixture.py::TestRequestScopeAccess::test_setup[class-module fspath cls-function] FAILED [ 90%] testing/python/fixture.py::TestRequestScopeAccess::test_setup[function-module fspath cls function-] FAILED [ 90%] testing/python/fixture.py::TestRequestScopeAccess::test_funcarg[session--fspath class function module] FAILED [ 90%] testing/python/fixture.py::TestRequestScopeAccess::test_funcarg[module-module fspath-cls function] FAILED [ 90%] testing/python/fixture.py::TestRequestScopeAccess::test_funcarg[class-module fspath cls-function] FAILED [ 90%] testing/python/fixture.py::TestRequestScopeAccess::test_funcarg[function-module fspath cls function-] FAILED [ 90%] testing/python/fixture.py::TestErrors::test_subfactory_missing_funcarg FAILED [ 90%] testing/python/fixture.py::TestErrors::test_issue498_fixture_finalizer_failing FAILED [ 90%] testing/python/fixture.py::TestErrors::test_setupfunc_missing_funcarg FAILED [ 90%] testing/python/fixture.py::TestShowFixtures::test_funcarg_compat FAILED [ 90%] testing/python/fixture.py::TestShowFixtures::test_show_fixtures FAILED [ 90%] testing/python/fixture.py::TestShowFixtures::test_show_fixtures_verbose FAILED [ 91%] testing/python/fixture.py::TestShowFixtures::test_show_fixtures_testmodule FAILED [ 91%] testing/python/fixture.py::TestShowFixtures::test_show_fixtures_conftest[True] FAILED [ 91%] testing/python/fixture.py::TestShowFixtures::test_show_fixtures_conftest[False] FAILED [ 91%] testing/python/fixture.py::TestShowFixtures::test_show_fixtures_trimmed_doc FAILED [ 91%] testing/python/fixture.py::TestShowFixtures::test_show_fixtures_indented_doc FAILED [ 91%] testing/python/fixture.py::TestShowFixtures::test_show_fixtures_indented_doc_first_line_unindented FAILED [ 91%] testing/python/fixture.py::TestShowFixtures::test_show_fixtures_indented_in_class FAILED [ 91%] testing/python/fixture.py::TestShowFixtures::test_show_fixtures_different_files FAILED [ 91%] testing/python/fixture.py::TestShowFixtures::test_show_fixtures_with_same_name FAILED [ 91%] testing/python/fixture.py::TestShowFixtures::test_fixture_disallow_twice PASSED [ 91%] testing/python/fixture.py::TestContextManagerFixtureFuncs::test_simple[fixture] FAILED [ 91%] testing/python/fixture.py::TestContextManagerFixtureFuncs::test_simple[yield_fixture] FAILED [ 91%] testing/python/fixture.py::TestContextManagerFixtureFuncs::test_scoped[fixture] FAILED [ 91%] testing/python/fixture.py::TestContextManagerFixtureFuncs::test_scoped[yield_fixture] FAILED [ 91%] testing/python/fixture.py::TestContextManagerFixtureFuncs::test_setup_exception[fixture] FAILED [ 91%] testing/python/fixture.py::TestContextManagerFixtureFuncs::test_setup_exception[yield_fixture] FAILED [ 91%] testing/python/fixture.py::TestContextManagerFixtureFuncs::test_teardown_exception[fixture] FAILED [ 91%] testing/python/fixture.py::TestContextManagerFixtureFuncs::test_teardown_exception[yield_fixture] FAILED [ 91%] testing/python/fixture.py::TestContextManagerFixtureFuncs::test_yields_more_than_one[fixture] FAILED [ 91%] testing/python/fixture.py::TestContextManagerFixtureFuncs::test_yields_more_than_one[yield_fixture] FAILED [ 91%] testing/python/fixture.py::TestContextManagerFixtureFuncs::test_custom_name[fixture] FAILED [ 91%] testing/python/fixture.py::TestContextManagerFixtureFuncs::test_custom_name[yield_fixture] FAILED [ 91%] testing/python/fixture.py::TestParameterizedSubRequest::test_call_from_fixture FAILED [ 92%] testing/python/fixture.py::TestParameterizedSubRequest::test_call_from_test FAILED [ 92%] testing/python/fixture.py::TestParameterizedSubRequest::test_external_fixture FAILED [ 92%] testing/python/fixture.py::TestParameterizedSubRequest::test_non_relative_path FAILED [ 92%] testing/python/fixture.py::test_pytest_fixture_setup_and_post_finalizer_hook FAILED [ 92%] testing/python/fixture.py::TestScopeOrdering::test_func_closure_module_auto[mark] FAILED [ 92%] testing/python/fixture.py::TestScopeOrdering::test_func_closure_module_auto[autouse] FAILED [ 92%] testing/python/fixture.py::TestScopeOrdering::test_func_closure_with_native_fixtures FAILED [ 92%] testing/python/fixture.py::TestScopeOrdering::test_func_closure_module FAILED [ 92%] testing/python/fixture.py::TestScopeOrdering::test_func_closure_scopes_reordered FAILED [ 92%] testing/python/fixture.py::TestScopeOrdering::test_func_closure_same_scope_closer_root_first FAILED [ 92%] testing/python/fixture.py::TestScopeOrdering::test_func_closure_all_scopes_complex FAILED [ 92%] testing/python/fixture.py::TestScopeOrdering::test_multiple_packages FAILED [ 92%] testing/python/integration.py::TestOEJSKITSpecials::test_funcarg_non_pycollectobj FAILED [ 92%] testing/python/integration.py::TestOEJSKITSpecials::test_autouse_fixture FAILED [ 92%] testing/python/integration.py::test_wrapped_getfslineno PASSED [ 92%] testing/python/integration.py::TestMockDecoration::test_wrapped_getfuncargnames PASSED [ 92%] testing/python/integration.py::TestMockDecoration::test_wrapped_getfuncargnames_patching xfail [ 92%] testing/python/integration.py::TestMockDecoration::test_unittest_mock FAILED [ 92%] testing/python/integration.py::TestMockDecoration::test_unittest_mock_and_fixture FAILED [ 92%] testing/python/integration.py::TestMockDecoration::test_unittest_mock_and_pypi_mock SKIPPED [ 92%] testing/python/integration.py::TestMockDecoration::test_mock SKIPPED [ 92%] testing/python/integration.py::TestMockDecoration::test_mock_sorting SKIPPED [ 93%] testing/python/integration.py::TestMockDecoration::test_mock_double_patch_issue473 SKIPPED [ 93%] testing/python/integration.py::TestReRunTests::test_rerun FAILED [ 93%] testing/python/integration.py::test_pytestconfig_is_session_scoped PASSED [ 93%] testing/python/integration.py::TestNoselikeTestAttribute::test_module_with_global_test FAILED [ 93%] testing/python/integration.py::TestNoselikeTestAttribute::test_class_and_method FAILED [ 93%] testing/python/integration.py::TestNoselikeTestAttribute::test_unittest_class FAILED [ 93%] testing/python/integration.py::TestNoselikeTestAttribute::test_class_with_nasty_getattr FAILED [ 93%] testing/python/integration.py::TestParameterize::test_idfn_marker FAILED [ 93%] testing/python/integration.py::TestParameterize::test_idfn_fixture FAILED [ 93%] testing/python/metafunc.py::TestMetafunc::test_no_funcargs PASSED [ 93%] testing/python/metafunc.py::TestMetafunc::test_function_basic PASSED [ 93%] testing/python/metafunc.py::TestMetafunc::test_addcall_no_args PASSED [ 93%] testing/python/metafunc.py::TestMetafunc::test_addcall_id PASSED [ 93%] testing/python/metafunc.py::TestMetafunc::test_addcall_param PASSED [ 93%] testing/python/metafunc.py::TestMetafunc::test_addcall_funcargs PASSED [ 93%] testing/python/metafunc.py::TestMetafunc::test_parametrize_error PASSED [ 93%] testing/python/metafunc.py::TestMetafunc::test_parametrize_bad_scope PASSED [ 93%] testing/python/metafunc.py::TestMetafunc::test_find_parametrized_scope PASSED [ 93%] testing/python/metafunc.py::TestMetafunc::test_parametrize_and_id PASSED [ 93%] testing/python/metafunc.py::TestMetafunc::test_parametrize_and_id_unicode PASSED [ 93%] testing/python/metafunc.py::TestMetafunc::test_parametrize_with_wrong_number_of_ids PASSED [ 93%] testing/python/metafunc.py::TestMetafunc::test_parametrize_empty_list PASSED [ 94%] testing/python/metafunc.py::TestMetafunc::test_parametrize_with_userobjects PASSED [ 94%] testing/python/metafunc.py::TestMetafunc::test_idval_hypothesis PASSED [ 94%] testing/python/metafunc.py::TestMetafunc::test_unicode_idval PASSED [ 94%] testing/python/metafunc.py::TestMetafunc::test_bytes_idval PASSED [ 94%] testing/python/metafunc.py::TestMetafunc::test_class_or_function_idval PASSED [ 94%] testing/python/metafunc.py::TestMetafunc::test_idmaker_autoname PASSED [ 94%] testing/python/metafunc.py::TestMetafunc::test_idmaker_with_bytes_regex PASSED [ 94%] testing/python/metafunc.py::TestMetafunc::test_idmaker_native_strings PASSED [ 94%] testing/python/metafunc.py::TestMetafunc::test_idmaker_enum PASSED [ 94%] testing/python/metafunc.py::TestMetafunc::test_idmaker_idfn PASSED [ 94%] testing/python/metafunc.py::TestMetafunc::test_idmaker_idfn_unique_names PASSED [ 94%] testing/python/metafunc.py::TestMetafunc::test_parametrize_ids_exception PASSED [ 94%] testing/python/metafunc.py::TestMetafunc::test_idmaker_with_ids PASSED [ 94%] testing/python/metafunc.py::TestMetafunc::test_idmaker_with_paramset_id PASSED [ 94%] testing/python/metafunc.py::TestMetafunc::test_idmaker_with_ids_unique_names PASSED [ 94%] testing/python/metafunc.py::TestMetafunc::test_addcall_and_parametrize PASSED [ 94%] testing/python/metafunc.py::TestMetafunc::test_parametrize_indirect PASSED [ 94%] testing/python/metafunc.py::TestMetafunc::test_parametrize_indirect_list PASSED [ 94%] testing/python/metafunc.py::TestMetafunc::test_parametrize_indirect_list_all PASSED [ 94%] testing/python/metafunc.py::TestMetafunc::test_parametrize_indirect_list_empty PASSED [ 94%] testing/python/metafunc.py::TestMetafunc::test_parametrize_indirect_list_functional FAILED [ 94%] testing/python/metafunc.py::TestMetafunc::test_parametrize_indirect_list_error PASSED [ 94%] testing/python/metafunc.py::TestMetafunc::test_parametrize_uses_no_fixture_error_indirect_false FAILED [ 95%] testing/python/metafunc.py::TestMetafunc::test_parametrize_uses_no_fixture_error_indirect_true FAILED [ 95%] testing/python/metafunc.py::TestMetafunc::test_parametrize_indirect_uses_no_fixture_error_indirect_string FAILED [ 95%] testing/python/metafunc.py::TestMetafunc::test_parametrize_indirect_uses_no_fixture_error_indirect_list FAILED [ 95%] testing/python/metafunc.py::TestMetafunc::test_parametrize_argument_not_in_indirect_list FAILED [ 95%] testing/python/metafunc.py::TestMetafunc::test_parametrize_gives_indicative_error_on_function_with_default_argument FAILED [ 95%] testing/python/metafunc.py::TestMetafunc::test_addcalls_and_parametrize_indirect PASSED [ 95%] testing/python/metafunc.py::TestMetafunc::test_parametrize_functional FAILED [ 95%] testing/python/metafunc.py::TestMetafunc::test_parametrize_onearg PASSED [ 95%] testing/python/metafunc.py::TestMetafunc::test_parametrize_onearg_indirect PASSED [ 95%] testing/python/metafunc.py::TestMetafunc::test_parametrize_twoargs PASSED [ 95%] testing/python/metafunc.py::TestMetafunc::test_parametrize_multiple_times FAILED [ 95%] testing/python/metafunc.py::TestMetafunc::test_parametrize_CSV FAILED [ 95%] testing/python/metafunc.py::TestMetafunc::test_parametrize_class_scenarios FAILED [ 95%] testing/python/metafunc.py::TestMetafunc::test_format_args PASSED [ 95%] testing/python/metafunc.py::TestMetafuncFunctional::test_attributes FAILED [ 95%] testing/python/metafunc.py::TestMetafuncFunctional::test_addcall_with_two_funcargs_generators FAILED [ 95%] testing/python/metafunc.py::TestMetafuncFunctional::test_two_functions FAILED [ 95%] testing/python/metafunc.py::TestMetafuncFunctional::test_noself_in_method FAILED [ 95%] testing/python/metafunc.py::TestMetafuncFunctional::test_generate_plugin_and_module FAILED [ 95%] testing/python/metafunc.py::TestMetafuncFunctional::test_generate_tests_in_class FAILED [ 95%] testing/python/metafunc.py::TestMetafuncFunctional::test_two_functions_not_same_instance FAILED [ 95%] testing/python/metafunc.py::TestMetafuncFunctional::test_issue28_setup_method_in_generate_tests FAILED [ 96%] testing/python/metafunc.py::TestMetafuncFunctional::test_parametrize_functional2 FAILED [ 96%] testing/python/metafunc.py::TestMetafuncFunctional::test_parametrize_and_inner_getfixturevalue FAILED [ 96%] testing/python/metafunc.py::TestMetafuncFunctional::test_parametrize_on_setup_arg FAILED [ 96%] testing/python/metafunc.py::TestMetafuncFunctional::test_parametrize_with_ids FAILED [ 96%] testing/python/metafunc.py::TestMetafuncFunctional::test_parametrize_without_ids FAILED [ 96%] testing/python/metafunc.py::TestMetafuncFunctional::test_parametrize_with_None_in_ids FAILED [ 96%] testing/python/metafunc.py::TestMetafuncFunctional::test_fixture_parametrized_empty_ids FAILED [ 96%] testing/python/metafunc.py::TestMetafuncFunctional::test_parametrized_empty_ids FAILED [ 96%] testing/python/metafunc.py::TestMetafuncFunctional::test_parametrized_ids_invalid_type FAILED [ 96%] testing/python/metafunc.py::TestMetafuncFunctional::test_parametrize_with_identical_ids_get_unique_names FAILED [ 96%] testing/python/metafunc.py::TestMetafuncFunctional::test_parametrize_scope_overrides[module-2] FAILED [ 96%] testing/python/metafunc.py::TestMetafuncFunctional::test_parametrize_scope_overrides[function-4] FAILED [ 96%] testing/python/metafunc.py::TestMetafuncFunctional::test_parametrize_issue323 FAILED [ 96%] testing/python/metafunc.py::TestMetafuncFunctional::test_usefixtures_seen_in_generate_tests FAILED [ 96%] testing/python/metafunc.py::TestMetafuncFunctional::test_generate_tests_only_done_in_subdir FAILED [ 96%] testing/python/metafunc.py::TestMetafuncFunctional::test_generate_same_function_names_issue403 FAILED [ 96%] testing/python/metafunc.py::TestMetafuncFunctional::test_parametrize_misspelling[parametrise] FAILED [ 96%] testing/python/metafunc.py::TestMetafuncFunctional::test_parametrize_misspelling[parameterize] FAILED [ 96%] testing/python/metafunc.py::TestMetafuncFunctional::test_parametrize_misspelling[parameterise] FAILED [ 96%] testing/python/metafunc.py::TestMetafuncFunctionalAuto::test_parametrize_auto_scope FAILED [ 96%] testing/python/metafunc.py::TestMetafuncFunctionalAuto::test_parametrize_auto_scope_indirect FAILED [ 96%] testing/python/metafunc.py::TestMetafuncFunctionalAuto::test_parametrize_auto_scope_override_fixture FAILED [ 97%] testing/python/metafunc.py::TestMetafuncFunctionalAuto::test_parametrize_all_indirects FAILED [ 97%] testing/python/metafunc.py::TestMetafuncFunctionalAuto::test_parametrize_some_arguments_auto_scope FAILED [ 97%] testing/python/metafunc.py::TestMetafuncFunctionalAuto::test_parametrize_issue634 FAILED [ 97%] testing/python/metafunc.py::TestMarkersWithParametrization::test_simple_mark FAILED [ 97%] testing/python/metafunc.py::TestMarkersWithParametrization::test_select_based_on_mark FAILED [ 97%] testing/python/metafunc.py::TestMarkersWithParametrization::test_nested_marks xfail [ 97%] testing/python/metafunc.py::TestMarkersWithParametrization::test_simple_xfail FAILED [ 97%] testing/python/metafunc.py::TestMarkersWithParametrization::test_simple_xfail_single_argname FAILED [ 97%] testing/python/metafunc.py::TestMarkersWithParametrization::test_xfail_with_arg FAILED [ 97%] testing/python/metafunc.py::TestMarkersWithParametrization::test_xfail_with_kwarg FAILED [ 97%] testing/python/metafunc.py::TestMarkersWithParametrization::test_xfail_with_arg_and_kwarg FAILED [ 97%] testing/python/metafunc.py::TestMarkersWithParametrization::test_xfail_passing_is_xpass[True] FAILED [ 97%] testing/python/metafunc.py::TestMarkersWithParametrization::test_xfail_passing_is_xpass[False] FAILED [ 97%] testing/python/metafunc.py::TestMarkersWithParametrization::test_parametrize_called_in_generate_tests FAILED [ 97%] testing/python/metafunc.py::TestMarkersWithParametrization::test_parametrize_ID_generation_string_int_works FAILED [ 97%] testing/python/metafunc.py::TestMarkersWithParametrization::test_parametrize_marked_value[True] FAILED [ 97%] testing/python/metafunc.py::TestMarkersWithParametrization::test_parametrize_marked_value[False] FAILED [ 97%] testing/python/metafunc.py::TestMarkersWithParametrization::test_pytest_make_parametrize_id FAILED [ 97%] testing/python/metafunc.py::TestMarkersWithParametrization::test_pytest_make_parametrize_id_with_argname FAILED [ 97%] testing/python/raises.py::TestRaises::test_raises PASSED [ 97%] testing/python/raises.py::TestRaises::test_raises_exec PASSED [ 97%] testing/python/raises.py::TestRaises::test_raises_syntax_error PASSED [ 97%] testing/python/raises.py::TestRaises::test_raises_function PASSED [ 98%] testing/python/raises.py::TestRaises::test_raises_callable_no_exception PASSED [ 98%] testing/python/raises.py::TestRaises::test_raises_as_contextmanager FAILED [ 98%] testing/python/raises.py::TestRaises::test_noclass PASSED [ 98%] testing/python/raises.py::TestRaises::test_invalid_arguments_to_raises PASSED [ 98%] testing/python/raises.py::TestRaises::test_tuple PASSED [ 98%] testing/python/raises.py::TestRaises::test_no_raise_message PASSED [ 98%] testing/python/raises.py::TestRaises::test_custom_raise_message PASSED [ 98%] testing/python/raises.py::TestRaises::test_raises_cyclic_reference[function] PASSED [ 98%] testing/python/raises.py::TestRaises::test_raises_cyclic_reference[with] PASSED [ 98%] testing/python/raises.py::TestRaises::test_raises_match PASSED [ 98%] testing/python/raises.py::TestRaises::test_raises_match_wrong_type PASSED [ 98%] testing/python/raises.py::TestRaises::test_raises_exception_looks_iterable PASSED [ 98%] testing/python/raises.py::TestRaises::test_raises_with_raising_dunder_class PASSED [ 98%] testing/python/setup_only.py::test_show_only_active_fixtures[--setup-only] FAILED [ 98%] testing/python/setup_only.py::test_show_different_scopes[--setup-only] FAILED [ 98%] testing/python/setup_only.py::test_show_nested_fixtures[--setup-only] FAILED [ 98%] testing/python/setup_only.py::test_show_fixtures_with_autouse[--setup-only] FAILED [ 98%] testing/python/setup_only.py::test_show_fixtures_with_parameters[--setup-only] FAILED [ 98%] testing/python/setup_only.py::test_show_fixtures_with_parameter_ids[--setup-only] FAILED [ 98%] testing/python/setup_only.py::test_show_fixtures_with_parameter_ids_function[--setup-only] FAILED [ 98%] testing/python/setup_only.py::test_show_only_active_fixtures[--setup-plan] FAILED [ 98%] testing/python/setup_only.py::test_show_different_scopes[--setup-plan] FAILED [ 99%] testing/python/setup_only.py::test_show_nested_fixtures[--setup-plan] FAILED [ 99%] testing/python/setup_only.py::test_show_fixtures_with_autouse[--setup-plan] FAILED [ 99%] testing/python/setup_only.py::test_show_fixtures_with_parameters[--setup-plan] FAILED [ 99%] testing/python/setup_only.py::test_show_fixtures_with_parameter_ids[--setup-plan] FAILED [ 99%] testing/python/setup_only.py::test_show_fixtures_with_parameter_ids_function[--setup-plan] FAILED [ 99%] testing/python/setup_only.py::test_show_only_active_fixtures[--setup-show] FAILED [ 99%] testing/python/setup_only.py::test_show_different_scopes[--setup-show] FAILED [ 99%] testing/python/setup_only.py::test_show_nested_fixtures[--setup-show] FAILED [ 99%] testing/python/setup_only.py::test_show_fixtures_with_autouse[--setup-show] FAILED [ 99%] testing/python/setup_only.py::test_show_fixtures_with_parameters[--setup-show] FAILED [ 99%] testing/python/setup_only.py::test_show_fixtures_with_parameter_ids[--setup-show] FAILED [ 99%] testing/python/setup_only.py::test_show_fixtures_with_parameter_ids_function[--setup-show] FAILED [ 99%] testing/python/setup_only.py::test_dynamic_fixture_request FAILED [ 99%] testing/python/setup_only.py::test_capturing FAILED [ 99%] testing/python/setup_only.py::test_show_fixtures_and_execute_test FAILED [ 99%] testing/python/setup_plan.py::test_show_fixtures_and_test FAILED [ 99%] testing/python/show_fixtures_per_test.py::test_no_items_should_not_show_output FAILED [ 99%] testing/python/show_fixtures_per_test.py::test_fixtures_in_module FAILED [ 99%] testing/python/show_fixtures_per_test.py::test_fixtures_in_conftest FAILED [ 99%] testing/python/show_fixtures_per_test.py::test_should_show_fixtures_used_by_test FAILED [ 99%] testing/python/show_fixtures_per_test.py::test_verbose_include_private_fixtures_and_loc FAILED [ 99%] testing/python/show_fixtures_per_test.py::test_doctest_items FAILED [100%] =================================== FAILURES =================================== ______________________ TestGeneralUsage.test_config_error ______________________ self = testdir = def test_config_error(self, testdir): testdir.copy_example("conftest_usageerror/conftest.py") result = testdir.runpytest(testdir.tmpdir) > assert result.ret == EXIT_USAGEERROR E assert 3 == 4 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c64d65690>.ret ../../../../pytest-3.10.1/testing/acceptance_test.py:30: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestGeneralUsage.test_root_conftest_syntax_error _______________ self = testdir = def test_root_conftest_syntax_error(self, testdir): testdir.makepyfile(conftest="raise SyntaxError\n") result = testdir.runpytest() > result.stderr.fnmatch_lines(["*raise SyntaxError*"]) E Failed: nomatch: '*raise SyntaxError*' E and: 'Traceback (most recent call last):' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess' E and: ' reprec = self.inline_run(*args, **kwargs)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run' E and: ' ret = pytest.main(list(args), plugins=plugins)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main' E and: ' config = _prepareconfig(args, plugins)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig' E and: ' pluginmanager=pluginmanager, args=args' E and: ' File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__' E and: ' return self._hookexec(self, self.get_hookimpls(), kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall' E and: ' gen.send(outcome)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse' E and: ' config = outcome.get_result()' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall' E and: ' res = hook_impl.function(*args)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse' E and: ' self.parse(args)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse' E and: ' self._preparse(args, addopts=addopts)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse' E and: ' self.pluginmanager.load_setuptools_entrypoints("pytest11")' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints' E and: ' self.register(plugin, name=ep.name)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register' E and: ' ret = super(PytestPluginManager, self).register(plugin, name)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register' E and: ' hook._maybe_apply_history(hookimpl)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history' E and: ' res = self._hookexec(self, [method], kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall' E and: ' return outcome.get_result()' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall' E and: ' res = hook_impl.function(*args)' E and: ' File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption' E and: " help='Depreacted, use --timeout-method')" E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption' E and: ' option = Argument(*optnames, **attrs)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__' E and: ' stacklevel=4,' E and: "DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',))" E and: '' E remains unmatched: '*raise SyntaxError*' ../../../../pytest-3.10.1/testing/acceptance_test.py:37: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestGeneralUsage.test_early_hook_error_issue38_1 _______________ self = testdir = def test_early_hook_error_issue38_1(self, testdir): testdir.makeconftest( """ def pytest_sessionstart(): 0 / 0 """ ) result = testdir.runpytest(testdir.tmpdir) assert result.ret != 0 # tracestyle is native by default for hook failures result.stdout.fnmatch_lines( > ["*INTERNALERROR*File*conftest.py*line 2*", "*0 / 0*"] ) E Failed: nomatch: '*INTERNALERROR*File*conftest.py*line 2*' E and: '' E remains unmatched: '*INTERNALERROR*File*conftest.py*line 2*' ../../../../pytest-3.10.1/testing/acceptance_test.py:51: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________ TestGeneralUsage.test_early_hook_configure_error_issue38 ___________ self = testdir = def test_early_hook_configure_error_issue38(self, testdir): testdir.makeconftest( """ def pytest_configure(): 0 / 0 """ ) result = testdir.runpytest(testdir.tmpdir) assert result.ret != 0 # here we get it on stderr result.stderr.fnmatch_lines( > ["*INTERNALERROR*File*conftest.py*line 2*", "*0 / 0*"] ) E Failed: nomatch: '*INTERNALERROR*File*conftest.py*line 2*' E and: 'Traceback (most recent call last):' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess' E and: ' reprec = self.inline_run(*args, **kwargs)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run' E and: ' ret = pytest.main(list(args), plugins=plugins)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main' E and: ' config = _prepareconfig(args, plugins)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig' E and: ' pluginmanager=pluginmanager, args=args' E and: ' File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__' E and: ' return self._hookexec(self, self.get_hookimpls(), kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall' E and: ' gen.send(outcome)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse' E and: ' config = outcome.get_result()' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall' E and: ' res = hook_impl.function(*args)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse' E and: ' self.parse(args)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse' E and: ' self._preparse(args, addopts=addopts)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse' E and: ' self.pluginmanager.load_setuptools_entrypoints("pytest11")' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints' E and: ' self.register(plugin, name=ep.name)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register' E and: ' ret = super(PytestPluginManager, self).register(plugin, name)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register' E and: ' hook._maybe_apply_history(hookimpl)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history' E and: ' res = self._hookexec(self, [method], kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall' E and: ' return outcome.get_result()' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall' E and: ' res = hook_impl.function(*args)' E and: ' File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption' E and: " help='Depreacted, use --timeout-method')" E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption' E and: ' option = Argument(*optnames, **attrs)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__' E and: ' stacklevel=4,' E and: "DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',))" E and: '' E remains unmatched: '*INTERNALERROR*File*conftest.py*line 2*' ../../../../pytest-3.10.1/testing/acceptance_test.py:71: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestGeneralUsage.test_file_not_found _____________________ self = testdir = def test_file_not_found(self, testdir): result = testdir.runpytest("asd") assert result.ret != 0 > result.stderr.fnmatch_lines(["ERROR: file not found*asd"]) E Failed: nomatch: 'ERROR: file not found*asd' E and: 'Traceback (most recent call last):' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess' E and: ' reprec = self.inline_run(*args, **kwargs)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run' E and: ' ret = pytest.main(list(args), plugins=plugins)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main' E and: ' config = _prepareconfig(args, plugins)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig' E and: ' pluginmanager=pluginmanager, args=args' E and: ' File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__' E and: ' return self._hookexec(self, self.get_hookimpls(), kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall' E and: ' gen.send(outcome)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse' E and: ' config = outcome.get_result()' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall' E and: ' res = hook_impl.function(*args)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse' E and: ' self.parse(args)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse' E and: ' self._preparse(args, addopts=addopts)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse' E and: ' self.pluginmanager.load_setuptools_entrypoints("pytest11")' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints' E and: ' self.register(plugin, name=ep.name)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register' E and: ' ret = super(PytestPluginManager, self).register(plugin, name)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register' E and: ' hook._maybe_apply_history(hookimpl)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history' E and: ' res = self._hookexec(self, [method], kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall' E and: ' return outcome.get_result()' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall' E and: ' res = hook_impl.function(*args)' E and: ' File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption' E and: " help='Depreacted, use --timeout-method')" E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption' E and: ' option = Argument(*optnames, **attrs)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__' E and: ' stacklevel=4,' E and: "DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',))" E and: '' E remains unmatched: 'ERROR: file not found*asd' ../../../../pytest-3.10.1/testing/acceptance_test.py:77: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________ TestGeneralUsage.test_file_not_found_unconfigure_issue143 ___________ self = testdir = def test_file_not_found_unconfigure_issue143(self, testdir): testdir.makeconftest( """ def pytest_configure(): print("---configure") def pytest_unconfigure(): print("---unconfigure") """ ) result = testdir.runpytest("-s", "asd") > assert result.ret == 4 # EXIT_USAGEERROR E assert 3 == 4 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c6430a110>.ret ../../../../pytest-3.10.1/testing/acceptance_test.py:89: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestGeneralUsage.test_config_preparse_plugin_option ______________ self = testdir = def test_config_preparse_plugin_option(self, testdir): testdir.makepyfile( pytest_xyz=""" def pytest_addoption(parser): parser.addoption("--xyz", dest="xyz", action="store") """ ) testdir.makepyfile( test_one=""" def test_option(pytestconfig): assert pytestconfig.option.xyz == "123" """ ) result = testdir.runpytest("-p", "pytest_xyz", "--xyz=123", syspathinsert=True) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63ee2e10>.ret ../../../../pytest-3.10.1/testing/acceptance_test.py:107: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ TestGeneralUsage.test_assertion_magic _____________________ self = testdir = def test_assertion_magic(self, testdir): p = testdir.makepyfile( """ def test_this(): x = 0 assert x """ ) result = testdir.runpytest(p) > result.stdout.fnmatch_lines(["> assert x", "E assert 0"]) E Failed: nomatch: '> assert x' E and: '' E remains unmatched: '> assert x' ../../../../pytest-3.10.1/testing/acceptance_test.py:119: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ TestGeneralUsage.test_nested_import_error ___________________ self = testdir = def test_nested_import_error(self, testdir): p = testdir.makepyfile( """ import import_fails def test_this(): assert import_fails.a == 1 """ ) testdir.makepyfile(import_fails="import does_not_work") result = testdir.runpytest(p) result.stdout.fnmatch_lines( [ # XXX on jython this fails: "> import import_fails", "ImportError while importing test module*", > "*No module named *does_not_work*", ] ) E Failed: nomatch: 'ImportError while importing test module*' E and: '' E remains unmatched: 'ImportError while importing test module*' ../../../../pytest-3.10.1/testing/acceptance_test.py:136: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestGeneralUsage.test_not_collectable_arguments ________________ self = testdir = def test_not_collectable_arguments(self, testdir): p1 = testdir.makepyfile("") p2 = testdir.makefile(".pyc", "123") result = testdir.runpytest(p1, p2) assert result.ret > result.stderr.fnmatch_lines(["*ERROR: not found:*{}".format(p2.basename)]) E Failed: nomatch: '*ERROR: not found:*test_not_collectable_arguments.pyc' E and: 'Traceback (most recent call last):' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess' E and: ' reprec = self.inline_run(*args, **kwargs)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run' E and: ' ret = pytest.main(list(args), plugins=plugins)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main' E and: ' config = _prepareconfig(args, plugins)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig' E and: ' pluginmanager=pluginmanager, args=args' E and: ' File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__' E and: ' return self._hookexec(self, self.get_hookimpls(), kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall' E and: ' gen.send(outcome)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse' E and: ' config = outcome.get_result()' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall' E and: ' res = hook_impl.function(*args)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse' E and: ' self.parse(args)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse' E and: ' self._preparse(args, addopts=addopts)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse' E and: ' self.pluginmanager.load_setuptools_entrypoints("pytest11")' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints' E and: ' self.register(plugin, name=ep.name)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register' E and: ' ret = super(PytestPluginManager, self).register(plugin, name)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register' E and: ' hook._maybe_apply_history(hookimpl)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history' E and: ' res = self._hookexec(self, [method], kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall' E and: ' return outcome.get_result()' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall' E and: ' res = hook_impl.function(*args)' E and: ' File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption' E and: " help='Depreacted, use --timeout-method')" E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption' E and: ' option = Argument(*optnames, **attrs)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__' E and: ' stacklevel=4,' E and: "DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',))" E and: '' E remains unmatched: '*ERROR: not found:*test_not_collectable_arguments.pyc' ../../../../pytest-3.10.1/testing/acceptance_test.py:146: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______ TestGeneralUsage.test_better_reporting_on_conftest_load_failure ________ self = testdir = request = > def test_better_reporting_on_conftest_load_failure(self, testdir, request): """Show a user-friendly traceback on conftest import failures (#486, #3332)""" testdir.makepyfile("") testdir.makeconftest( """ def foo(): import qwerty foo() """ ) result = testdir.runpytest("--help") result.stdout.fnmatch_lines( """ *--version* *warning*conftest.py* > """ ) E Failed: nomatch: '*--version*' E and: '' E remains unmatched: '*--version*' ../../../../pytest-3.10.1/testing/acceptance_test.py:163: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ TestGeneralUsage.test_early_skip _______________________ self = testdir = def test_early_skip(self, testdir): testdir.mkdir("xyz") testdir.makeconftest( """ import pytest def pytest_collect_directory(): pytest.skip("early") """ ) result = testdir.runpytest() > assert result.ret == EXIT_NOTESTSCOLLECTED E assert 3 == 5 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63c14810>.ret ../../../../pytest-3.10.1/testing/acceptance_test.py:195: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________ TestGeneralUsage.test_issue88_initial_file_multinodes _____________ self = testdir = def test_issue88_initial_file_multinodes(self, testdir): testdir.copy_example("issue88_initial_file_multinodes") p = testdir.makepyfile("def test_hello(): pass") result = testdir.runpytest(p, "--collect-only") > result.stdout.fnmatch_lines(["*MyFile*test_issue88*", "*Module*test_issue88*"]) E Failed: nomatch: '*MyFile*test_issue88*' E and: '' E remains unmatched: '*MyFile*test_issue88*' ../../../../pytest-3.10.1/testing/acceptance_test.py:202: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________ TestGeneralUsage.test_issue93_initialnode_importing_capturing _________ self = testdir = def test_issue93_initialnode_importing_capturing(self, testdir): testdir.makeconftest( """ import sys print ("should not be seen") sys.stderr.write("stder42\\n") """ ) result = testdir.runpytest() > assert result.ret == EXIT_NOTESTSCOLLECTED E assert 3 == 5 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63c0cc10>.ret ../../../../pytest-3.10.1/testing/acceptance_test.py:213: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________ TestGeneralUsage.test_conftest_printing_shows_if_error ____________ self = testdir = def test_conftest_printing_shows_if_error(self, testdir): testdir.makeconftest( """ print ("should be seen") assert 0 """ ) result = testdir.runpytest() assert result.ret != 0 > assert "should be seen" in result.stdout.str() E AssertionError: assert 'should be seen' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c6492ebd0>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c6492ebd0> = <_pytest.pytester.RunResult object at 0x7f5c64d71450>.stdout ../../../../pytest-3.10.1/testing/acceptance_test.py:226: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________ TestGeneralUsage.test_issue109_sibling_conftests_not_loaded __________ self = testdir = def test_issue109_sibling_conftests_not_loaded(self, testdir): sub1 = testdir.mkdir("sub1") sub2 = testdir.mkdir("sub2") sub1.join("conftest.py").write("assert 0") result = testdir.runpytest(sub2) > assert result.ret == EXIT_NOTESTSCOLLECTED E assert 3 == 5 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63ffe450>.ret ../../../../pytest-3.10.1/testing/acceptance_test.py:256: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ TestGeneralUsage.test_directory_skipped ____________________ self = testdir = def test_directory_skipped(self, testdir): testdir.makeconftest( """ import pytest def pytest_ignore_collect(): pytest.skip("intentional") """ ) testdir.makepyfile("def test_hello(): pass") result = testdir.runpytest() > assert result.ret == EXIT_NOTESTSCOLLECTED E assert 3 == 5 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c64b28590>.ret ../../../../pytest-3.10.1/testing/acceptance_test.py:274: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________ TestGeneralUsage.test_multiple_items_per_collector_byid ____________ self = testdir = def test_multiple_items_per_collector_byid(self, testdir): c = testdir.makeconftest( """ import pytest class MyItem(pytest.Item): def runtest(self): pass class MyCollector(pytest.File): def collect(self): return [MyItem(name="xyz", parent=self)] def pytest_collect_file(path, parent): if path.basename.startswith("conftest"): return MyCollector(path, parent) """ ) result = testdir.runpytest(c.basename + "::" + "xyz") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c6430a650>.ret ../../../../pytest-3.10.1/testing/acceptance_test.py:293: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestGeneralUsage.test_skip_on_generated_funcarg_id ______________ self = testdir = def test_skip_on_generated_funcarg_id(self, testdir): testdir.makeconftest( """ import pytest def pytest_generate_tests(metafunc): metafunc.addcall({'x': 3}, id='hello-123') def pytest_runtest_setup(item): print (item.keywords) if 'hello-123' in item.keywords: pytest.skip("hello") assert 0 """ ) p = testdir.makepyfile("""def test_func(x): pass""") res = testdir.runpytest(p) > assert res.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c64d02f90>.ret ../../../../pytest-3.10.1/testing/acceptance_test.py:311: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestGeneralUsage.test_direct_addressing_selects ________________ self = testdir = def test_direct_addressing_selects(self, testdir): p = testdir.makepyfile( """ def pytest_generate_tests(metafunc): metafunc.addcall({'i': 1}, id="1") metafunc.addcall({'i': 2}, id="2") def test_func(i): pass """ ) res = testdir.runpytest(p.basename + "::" + "test_func[1]") > assert res.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c64769490>.ret ../../../../pytest-3.10.1/testing/acceptance_test.py:325: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestGeneralUsage.test_direct_addressing_notfound _______________ self = testdir = def test_direct_addressing_notfound(self, testdir): p = testdir.makepyfile( """ def test_func(): pass """ ) res = testdir.runpytest(p.basename + "::" + "test_notfound") assert res.ret > res.stderr.fnmatch_lines(["*ERROR*not found*"]) E Failed: nomatch: '*ERROR*not found*' E and: 'Traceback (most recent call last):' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess' E and: ' reprec = self.inline_run(*args, **kwargs)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run' E and: ' ret = pytest.main(list(args), plugins=plugins)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main' E and: ' config = _prepareconfig(args, plugins)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig' E and: ' pluginmanager=pluginmanager, args=args' E and: ' File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__' E and: ' return self._hookexec(self, self.get_hookimpls(), kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall' E and: ' gen.send(outcome)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse' E and: ' config = outcome.get_result()' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall' E and: ' res = hook_impl.function(*args)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse' E and: ' self.parse(args)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse' E and: ' self._preparse(args, addopts=addopts)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse' E and: ' self.pluginmanager.load_setuptools_entrypoints("pytest11")' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints' E and: ' self.register(plugin, name=ep.name)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register' E and: ' ret = super(PytestPluginManager, self).register(plugin, name)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register' E and: ' hook._maybe_apply_history(hookimpl)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history' E and: ' res = self._hookexec(self, [method], kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall' E and: ' return outcome.get_result()' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall' E and: ' res = hook_impl.function(*args)' E and: ' File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption' E and: " help='Depreacted, use --timeout-method')" E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption' E and: ' option = Argument(*optnames, **attrs)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__' E and: ' stacklevel=4,' E and: "DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',))" E and: '' E remains unmatched: '*ERROR*not found*' ../../../../pytest-3.10.1/testing/acceptance_test.py:337: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestGeneralUsage.test_initialization_error_issue49 ______________ self = testdir = def test_initialization_error_issue49(self, testdir): testdir.makeconftest( """ def pytest_configure(): x """ ) result = testdir.runpytest() assert result.ret == 3 # internal error > result.stderr.fnmatch_lines(["INTERNAL*pytest_configure*", "INTERNAL*x*"]) E Failed: nomatch: 'INTERNAL*pytest_configure*' E and: 'Traceback (most recent call last):' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess' E and: ' reprec = self.inline_run(*args, **kwargs)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run' E and: ' ret = pytest.main(list(args), plugins=plugins)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main' E and: ' config = _prepareconfig(args, plugins)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig' E and: ' pluginmanager=pluginmanager, args=args' E and: ' File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__' E and: ' return self._hookexec(self, self.get_hookimpls(), kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall' E and: ' gen.send(outcome)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse' E and: ' config = outcome.get_result()' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall' E and: ' res = hook_impl.function(*args)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse' E and: ' self.parse(args)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse' E and: ' self._preparse(args, addopts=addopts)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse' E and: ' self.pluginmanager.load_setuptools_entrypoints("pytest11")' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints' E and: ' self.register(plugin, name=ep.name)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register' E and: ' ret = super(PytestPluginManager, self).register(plugin, name)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register' E and: ' hook._maybe_apply_history(hookimpl)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history' E and: ' res = self._hookexec(self, [method], kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall' E and: ' return outcome.get_result()' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall' E and: ' res = hook_impl.function(*args)' E and: ' File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption' E and: " help='Depreacted, use --timeout-method')" E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption' E and: ' option = Argument(*optnames, **attrs)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__' E and: ' stacklevel=4,' E and: "DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',))" E and: '' E remains unmatched: 'INTERNAL*pytest_configure*' ../../../../pytest-3.10.1/testing/acceptance_test.py:355: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestGeneralUsage.test_issue134_report_error_when_collecting_member[test_fun.py::test_a] self = testdir = lookfor = 'test_fun.py::test_a' @pytest.mark.parametrize("lookfor", ["test_fun.py::test_a"]) def test_issue134_report_error_when_collecting_member(self, testdir, lookfor): testdir.makepyfile( test_fun=""" def test_a(): pass def""" ) result = testdir.runpytest(lookfor) > result.stdout.fnmatch_lines(["*SyntaxError*"]) E Failed: nomatch: '*SyntaxError*' E and: '' E remains unmatched: '*SyntaxError*' ../../../../pytest-3.10.1/testing/acceptance_test.py:367: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________ TestGeneralUsage.test_report_all_failed_collections_initargs _________ self = testdir = def test_report_all_failed_collections_initargs(self, testdir): testdir.makepyfile(test_a="def", test_b="def") result = testdir.runpytest("test_a.py::a", "test_b.py::b") > result.stderr.fnmatch_lines(["*ERROR*test_a.py::a*", "*ERROR*test_b.py::b*"]) E Failed: nomatch: '*ERROR*test_a.py::a*' E and: 'Traceback (most recent call last):' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess' E and: ' reprec = self.inline_run(*args, **kwargs)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run' E and: ' ret = pytest.main(list(args), plugins=plugins)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main' E and: ' config = _prepareconfig(args, plugins)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig' E and: ' pluginmanager=pluginmanager, args=args' E and: ' File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__' E and: ' return self._hookexec(self, self.get_hookimpls(), kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall' E and: ' gen.send(outcome)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse' E and: ' config = outcome.get_result()' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall' E and: ' res = hook_impl.function(*args)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse' E and: ' self.parse(args)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse' E and: ' self._preparse(args, addopts=addopts)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse' E and: ' self.pluginmanager.load_setuptools_entrypoints("pytest11")' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints' E and: ' self.register(plugin, name=ep.name)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register' E and: ' ret = super(PytestPluginManager, self).register(plugin, name)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register' E and: ' hook._maybe_apply_history(hookimpl)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history' E and: ' res = self._hookexec(self, [method], kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall' E and: ' return outcome.get_result()' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall' E and: ' res = hook_impl.function(*args)' E and: ' File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption' E and: " help='Depreacted, use --timeout-method')" E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption' E and: ' option = Argument(*optnames, **attrs)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__' E and: ' stacklevel=4,' E and: "DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',))" E and: '' E remains unmatched: '*ERROR*test_a.py::a*' ../../../../pytest-3.10.1/testing/acceptance_test.py:375: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestGeneralUsage.test_unknown_option _____________________ self = testdir = def test_unknown_option(self, testdir): result = testdir.runpytest("--qwlkej") result.stderr.fnmatch_lines( """ *unrecognized* > """ ) E Failed: nomatch: '*unrecognized*' E and: 'Traceback (most recent call last):' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess' E and: ' reprec = self.inline_run(*args, **kwargs)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run' E and: ' ret = pytest.main(list(args), plugins=plugins)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main' E and: ' config = _prepareconfig(args, plugins)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig' E and: ' pluginmanager=pluginmanager, args=args' E and: ' File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__' E and: ' return self._hookexec(self, self.get_hookimpls(), kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall' E and: ' gen.send(outcome)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse' E and: ' config = outcome.get_result()' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall' E and: ' res = hook_impl.function(*args)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse' E and: ' self.parse(args)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse' E and: ' self._preparse(args, addopts=addopts)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse' E and: ' self.pluginmanager.load_setuptools_entrypoints("pytest11")' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints' E and: ' self.register(plugin, name=ep.name)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register' E and: ' ret = super(PytestPluginManager, self).register(plugin, name)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register' E and: ' hook._maybe_apply_history(hookimpl)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history' E and: ' res = self._hookexec(self, [method], kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall' E and: ' return outcome.get_result()' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall' E and: ' res = hook_impl.function(*args)' E and: ' File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption' E and: " help='Depreacted, use --timeout-method')" E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption' E and: ' option = Argument(*optnames, **attrs)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__' E and: ' stacklevel=4,' E and: "DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',))" E and: '' E remains unmatched: '*unrecognized*' ../../../../pytest-3.10.1/testing/acceptance_test.py:408: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestGeneralUsage.test_getsourcelines_error_issue553 ______________ self = testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c63ae2690> def test_getsourcelines_error_issue553(self, testdir, monkeypatch): monkeypatch.setattr("inspect.getsourcelines", None) p = testdir.makepyfile( """ def raise_error(obj): raise IOError('source code not available') import inspect inspect.getsourcelines = raise_error def test_foo(invalid_fixture): pass """ ) res = testdir.runpytest(p) res.stdout.fnmatch_lines( > ["*source code not available*", "E*fixture 'invalid_fixture' not found"] ) E Failed: nomatch: '*source code not available*' E and: '' E remains unmatched: '*source code not available*' ../../../../pytest-3.10.1/testing/acceptance_test.py:427: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestGeneralUsage.test_plugins_given_as_strings ________________ self = tmpdir = local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_plugins_given_as_strings0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c64476110> def test_plugins_given_as_strings(self, tmpdir, monkeypatch): """test that str values passed to main() as `plugins` arg are interpreted as module names to be imported and registered. #855. """ with pytest.raises(ImportError) as excinfo: pytest.main([str(tmpdir)], plugins=["invalid.module"]) assert "invalid" in str(excinfo.value) p = tmpdir.join("test_test_plugins_given_as_strings.py") p.write("def test_foo(): pass") mod = types.ModuleType("myplugin") monkeypatch.setitem(sys.modules, "myplugin", mod) > assert pytest.main(args=[str(tmpdir)], plugins=["myplugin"]) == 0 testing/acceptance_test.py:443: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) src/_pytest/config/argparsing.py:189: DeprecationWarning _____________ TestGeneralUsage.test_parametrized_with_bytes_regex ______________ self = testdir = def test_parametrized_with_bytes_regex(self, testdir): p = testdir.makepyfile( """ import re import pytest @pytest.mark.parametrize('r', [re.compile(b'foo')]) def test_stuff(r): pass """ ) res = testdir.runpytest(p) > res.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/acceptance_test.py:456: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestGeneralUsage.test_parametrized_with_null_bytes ______________ self = testdir = def test_parametrized_with_null_bytes(self, testdir): """Test parametrization with values that contain null bytes and unicode characters (#2644, #2957)""" p = testdir.makepyfile( u""" # encoding: UTF-8 import pytest @pytest.mark.parametrize("data", [b"\\x00", "\\x00", u'ação']) def test_foo(data): assert data """ ) res = testdir.runpytest(p) > res.assert_outcomes(passed=3) ../../../../pytest-3.10.1/testing/acceptance_test.py:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c63c3ff50> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestInvocationVariants.test_invoke_with_string ________________ self = capsys = <_pytest.capture.CaptureFixture object at 0x7f5c649609d0> def test_invoke_with_string(self, capsys): > retcode = pytest.main("-h") testing/acceptance_test.py:561: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) src/_pytest/config/argparsing.py:189: DeprecationWarning _________________ TestInvocationVariants.test_invoke_with_path _________________ self = tmpdir = local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_invoke_with_path0') capsys = <_pytest.capture.CaptureFixture object at 0x7f5c63dc1e90> def test_invoke_with_path(self, tmpdir, capsys): > retcode = pytest.main(tmpdir) testing/acceptance_test.py:568: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ TestInvocationVariants.test_invoke_plugin_api _________________ self = testdir = capsys = <_pytest.capture.CaptureFixture object at 0x7f5c63d99dd0> def test_invoke_plugin_api(self, testdir, capsys): class MyPlugin(object): def pytest_addoption(self, parser): parser.addoption("--myopt") > pytest.main(["-h"], plugins=[MyPlugin()]) ../../../../pytest-3.10.1/testing/acceptance_test.py:577: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ TestInvocationVariants.test_pyargs_importerror ________________ self = testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c63e29d50> def test_pyargs_importerror(self, testdir, monkeypatch): monkeypatch.delenv("PYTHONDONTWRITEBYTECODE", False) path = testdir.mkpydir("tpkg") path.join("test_hello.py").write("raise ImportError") result = testdir.runpytest("--pyargs", "tpkg.test_hello", syspathinsert=True) assert result.ret != 0 > result.stdout.fnmatch_lines(["collected*0*items*/*1*errors"]) E Failed: nomatch: 'collected*0*items*/*1*errors' E and: '' E remains unmatched: 'collected*0*items*/*1*errors' ../../../../pytest-3.10.1/testing/acceptance_test.py:589: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestInvocationVariants.test_cmdline_python_package ______________ self = testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c6411f1d0> def test_cmdline_python_package(self, testdir, monkeypatch): import warnings monkeypatch.delenv("PYTHONDONTWRITEBYTECODE", False) path = testdir.mkpydir("tpkg") path.join("test_hello.py").write("def test_hello(): pass") path.join("test_world.py").write("def test_world(): pass") result = testdir.runpytest("--pyargs", "tpkg") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63c9f450>.ret ../../../../pytest-3.10.1/testing/acceptance_test.py:599: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________ TestInvocationVariants.test_cmdline_python_namespace_package _________ self = testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c63a90490> def test_cmdline_python_namespace_package(self, testdir, monkeypatch): """ test --pyargs option with namespace packages (#1567) """ monkeypatch.delenv("PYTHONDONTWRITEBYTECODE", raising=False) search_path = [] for dirname in "hello", "world": d = testdir.mkdir(dirname) search_path.append(d) ns = d.mkdir("ns_pkg") ns.join("__init__.py").write( "__import__('pkg_resources').declare_namespace(__name__)" ) lib = ns.mkdir(dirname) lib.ensure("__init__.py") lib.join("test_{}.py".format(dirname)).write( "def test_{}(): pass\ndef test_other():pass".format(dirname) ) # The structure of the test directory is now: # . # ├── hello # │ └── ns_pkg # │ ├── __init__.py # │ └── hello # │ ├── __init__.py # │ └── test_hello.py # └── world # └── ns_pkg # ├── __init__.py # └── world # ├── __init__.py # └── test_world.py # NOTE: the different/reversed ordering is intentional here. monkeypatch.setenv("PYTHONPATH", prepend_pythonpath(*search_path)) for p in search_path: monkeypatch.syspath_prepend(p) # mixed module and filenames: monkeypatch.chdir("world") result = testdir.runpytest("--pyargs", "-v", "ns_pkg.hello", "ns_pkg/world") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63bf3210>.ret ../../../../../pytest-3.10.1/testing/acceptance_test.py:663: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________ TestInvocationVariants.test_invoke_test_and_doctestmodules __________ self = testdir = def test_invoke_test_and_doctestmodules(self, testdir): p = testdir.makepyfile( """ def test(): pass """ ) result = testdir.runpytest(str(p) + "::test", "--doctest-modules") > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/acceptance_test.py:692: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________ TestInvocationVariants.test_cmdline_python_package_symlink __________ self = testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c63e29cd0> @pytest.mark.skipif(not hasattr(os, "symlink"), reason="requires symlinks") def test_cmdline_python_package_symlink(self, testdir, monkeypatch): """ test --pyargs option with packages with path containing symlink can have conftest.py in their package (#2985) """ # dummy check that we can actually create symlinks: on Windows `os.symlink` is available, # but normal users require special admin privileges to create symlinks. if sys.platform == "win32": try: os.symlink( str(testdir.tmpdir.ensure("tmpfile")), str(testdir.tmpdir.join("tmpfile2")), ) except OSError as e: pytest.skip(six.text_type(e.args[0])) monkeypatch.delenv("PYTHONDONTWRITEBYTECODE", raising=False) dirname = "lib" d = testdir.mkdir(dirname) foo = d.mkdir("foo") foo.ensure("__init__.py") lib = foo.mkdir("bar") lib.ensure("__init__.py") lib.join("test_bar.py").write( "def test_bar(): pass\ndef test_other(a_fixture):pass" ) lib.join("conftest.py").write( "import pytest\n@pytest.fixture\ndef a_fixture():pass" ) d_local = testdir.mkdir("local") symlink_location = os.path.join(str(d_local), "lib") if six.PY2: os.symlink(str(d), symlink_location) else: os.symlink(str(d), symlink_location, target_is_directory=True) # The structure of the test directory is now: # . # ├── local # │ └── lib -> ../lib # └── lib # └── foo # ├── __init__.py # └── bar # ├── __init__.py # ├── conftest.py # └── test_bar.py # NOTE: the different/reversed ordering is intentional here. search_path = ["lib", os.path.join("local", "lib")] monkeypatch.setenv("PYTHONPATH", prepend_pythonpath(*search_path)) for p in search_path: monkeypatch.syspath_prepend(p) # module picked up in symlink-ed directory: # It picks up local/lib/foo/bar (symlink) via sys.path. result = testdir.runpytest("--pyargs", "-v", "foo.bar") testdir.chdir() > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c64d76550>.ret ../../../../pytest-3.10.1/testing/acceptance_test.py:754: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________ TestInvocationVariants.test_cmdline_python_package_not_exists _________ self = testdir = def test_cmdline_python_package_not_exists(self, testdir): result = testdir.runpytest("--pyargs", "tpkgwhatv") assert result.ret > result.stderr.fnmatch_lines(["ERROR*file*or*package*not*found*"]) E Failed: nomatch: 'ERROR*file*or*package*not*found*' E and: 'Traceback (most recent call last):' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess' E and: ' reprec = self.inline_run(*args, **kwargs)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run' E and: ' ret = pytest.main(list(args), plugins=plugins)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main' E and: ' config = _prepareconfig(args, plugins)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig' E and: ' pluginmanager=pluginmanager, args=args' E and: ' File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__' E and: ' return self._hookexec(self, self.get_hookimpls(), kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall' E and: ' gen.send(outcome)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse' E and: ' config = outcome.get_result()' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall' E and: ' res = hook_impl.function(*args)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse' E and: ' self.parse(args)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse' E and: ' self._preparse(args, addopts=addopts)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse' E and: ' self.pluginmanager.load_setuptools_entrypoints("pytest11")' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints' E and: ' self.register(plugin, name=ep.name)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register' E and: ' ret = super(PytestPluginManager, self).register(plugin, name)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register' E and: ' hook._maybe_apply_history(hookimpl)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history' E and: ' res = self._hookexec(self, [method], kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall' E and: ' return outcome.get_result()' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall' E and: ' res = hook_impl.function(*args)' E and: ' File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption' E and: " help='Depreacted, use --timeout-method')" E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption' E and: ' option = Argument(*optnames, **attrs)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__' E and: ' stacklevel=4,' E and: "DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',))" E and: '' E remains unmatched: 'ERROR*file*or*package*not*found*' ../../../../pytest-3.10.1/testing/acceptance_test.py:775: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ TestInvocationVariants.test_doctest_id ____________________ self = testdir = def test_doctest_id(self, testdir): testdir.makefile( ".txt", """ >>> x=3 >>> x 4 """, ) result = testdir.runpytest("-rf") lines = result.stdout.str().splitlines() for line in lines: if line.startswith("FAIL "): testid = line[5:].strip() break > result = testdir.runpytest(testid, "-rf") E UnboundLocalError: local variable 'testid' referenced before assignment ../../../../pytest-3.10.1/testing/acceptance_test.py:808: UnboundLocalError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ TestDurations.test_calls ___________________________ self = testdir = def test_calls(self, testdir): testdir.makepyfile(self.source) result = testdir.runpytest("--durations=10") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c64d99fd0>.ret ../../../../pytest-3.10.1/testing/acceptance_test.py:842: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ TestDurations.test_calls_show_2 ________________________ self = testdir = def test_calls_show_2(self, testdir): testdir.makepyfile(self.source) result = testdir.runpytest("--durations=2") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63d99ad0>.ret ../../../../pytest-3.10.1/testing/acceptance_test.py:853: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ TestDurations.test_calls_showall _______________________ self = testdir = def test_calls_showall(self, testdir): testdir.makepyfile(self.source) result = testdir.runpytest("--durations=0") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c640597d0>.ret ../../../../pytest-3.10.1/testing/acceptance_test.py:860: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ TestDurations.test_calls_showall_verbose ___________________ self = testdir = def test_calls_showall_verbose(self, testdir): testdir.makepyfile(self.source) result = testdir.runpytest("--durations=0", "-vv") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c642ccad0>.ret ../../../../pytest-3.10.1/testing/acceptance_test.py:872: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ TestDurations.test_with_deselected ______________________ self = testdir = def test_with_deselected(self, testdir): testdir.makepyfile(self.source) result = testdir.runpytest("--durations=2", "-k test_2") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63e0d8d0>.ret ../../../../pytest-3.10.1/testing/acceptance_test.py:884: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ TestDurations.test_with_failing_collection __________________ self = testdir = def test_with_failing_collection(self, testdir): testdir.makepyfile(self.source) testdir.makepyfile(test_collecterror="""xyz""") result = testdir.runpytest("--durations=2", "-k test_1") > assert result.ret == 2 E assert 3 == 2 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63c37650>.ret ../../../../pytest-3.10.1/testing/acceptance_test.py:891: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ TestDurations.test_with_not __________________________ self = testdir = def test_with_not(self, testdir): testdir.makepyfile(self.source) result = testdir.runpytest("-k not 1") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63f9e050>.ret ../../../../pytest-3.10.1/testing/acceptance_test.py:900: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestDurationWithFixture.test_setup_function __________________ self = testdir = def test_setup_function(self, testdir): testdir.makepyfile(self.source) result = testdir.runpytest("--durations=10") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c64122a90>.ret ../../../../pytest-3.10.1/testing/acceptance_test.py:920: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ test_import_plugin_unicode_name ________________________ testdir = def test_import_plugin_unicode_name(testdir): testdir.makepyfile(myplugin="") testdir.makepyfile( """ def test(): pass """ ) testdir.makeconftest( """ pytest_plugins = [u'myplugin'] """ ) r = testdir.runpytest() > assert r.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c6448d9d0>.ret ../../../../pytest-3.10.1/testing/acceptance_test.py:965: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ test_deferred_hook_checking __________________________ testdir = def test_deferred_hook_checking(testdir): """ Check hooks as late as possible (#1821). """ testdir.syspathinsert() testdir.makepyfile( **{ "plugin.py": """ class Hooks(object): def pytest_my_hook(self, config): pass def pytest_configure(config): config.pluginmanager.add_hookspecs(Hooks) """, "conftest.py": """ pytest_plugins = ['plugin'] def pytest_my_hook(config): return 40 """, "test_foo.py": """ def test(request): assert request.config.hook.pytest_my_hook(config=request.config) == [40] """, } ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["* 1 passed *"]) E Failed: nomatch: '* 1 passed *' E and: '' E remains unmatched: '* 1 passed *' ../../../../pytest-3.10.1/testing/acceptance_test.py:995: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ test_fixture_values_leak ___________________________ testdir = def test_fixture_values_leak(testdir): """Ensure that fixture objects are properly destroyed by the garbage collector at the end of their expected life-times (#2981). """ testdir.makepyfile( """ import attr import gc import pytest import weakref @attr.s class SomeObj(object): name = attr.ib() fix_of_test1_ref = None session_ref = None @pytest.fixture(scope='session') def session_fix(): global session_ref obj = SomeObj(name='session-fixture') session_ref = weakref.ref(obj) return obj @pytest.fixture def fix(session_fix): global fix_of_test1_ref obj = SomeObj(name='local-fixture') fix_of_test1_ref = weakref.ref(obj) return obj def test1(fix): assert fix_of_test1_ref() is fix def test2(): gc.collect() # fixture "fix" created during test1 must have been destroyed by now assert fix_of_test1_ref() is None """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["* 2 passed *"]) E Failed: nomatch: '* 2 passed *' E and: '' E remains unmatched: '* 2 passed *' ../../../../pytest-3.10.1/testing/acceptance_test.py:1040: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ test_fixture_order_respects_scope _______________________ testdir = def test_fixture_order_respects_scope(testdir): """Ensure that fixtures are created according to scope order, regression test for #2405 """ testdir.makepyfile( """ import pytest data = {} @pytest.fixture(scope='module') def clean_data(): data.clear() @pytest.fixture(autouse=True) def add_data(): data.update(value=True) @pytest.mark.usefixtures('clean_data') def test_value(): assert data.get('value') """ ) result = testdir.runpytest() > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c64964310>.ret ../../../../pytest-3.10.1/testing/acceptance_test.py:1066: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ test_fixture_mock_integration _________________________ testdir = def test_fixture_mock_integration(testdir): """Test that decorators applied to fixture are left working (#3774)""" p = testdir.copy_example("acceptance/fixture_mock_integration.py") result = testdir.runpytest(p) > result.stdout.fnmatch_lines("*1 passed*") E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/acceptance_test.py:1105: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________________ test_usage_error_code _____________________________ testdir = def test_usage_error_code(testdir): result = testdir.runpytest("-unknown-option-") > assert result.ret == EXIT_USAGEERROR E assert 3 == 4 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63cbb950>.ret ../../../../pytest-3.10.1/testing/acceptance_test.py:1110: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ test_compat_properties_deprecation ______________________ testdir = def test_compat_properties_deprecation(testdir): testdir.makepyfile( """ def test_foo(request): print(request.node.Module) """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ "*test_compat_properties_deprecation.py:2:*usage of Function.Module is deprecated, " "please use pytest.Module instead*", > "*1 passed, 1 warnings in*", ] ) E Failed: nomatch: '*test_compat_properties_deprecation.py:2:*usage of Function.Module is deprecated, please use pytest.Module instead*' E and: '' E remains unmatched: '*test_compat_properties_deprecation.py:2:*usage of Function.Module is deprecated, please use pytest.Module instead*' ../../../../pytest-3.10.1/testing/deprecated_test.py:49: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ test_cached_setup_deprecation _________________________ testdir = def test_cached_setup_deprecation(testdir): testdir.makepyfile( """ import pytest @pytest.fixture def fix(request): return request.cached_setup(lambda: 1) def test_foo(fix): assert fix == 1 """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ "*test_cached_setup_deprecation.py:4:*cached_setup is deprecated*", > "*1 passed, 1 warnings in*", ] ) E Failed: nomatch: '*test_cached_setup_deprecation.py:4:*cached_setup is deprecated*' E and: '' E remains unmatched: '*test_cached_setup_deprecation.py:4:*cached_setup is deprecated*' ../../../../pytest-3.10.1/testing/deprecated_test.py:70: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ test_custom_class_deprecation _________________________ testdir = def test_custom_class_deprecation(testdir): testdir.makeconftest( """ import pytest class MyModule(pytest.Module): class Class(pytest.Class): pass def pytest_pycollect_makemodule(path, parent): return MyModule(path, parent) """ ) testdir.makepyfile( """ class Test: def test_foo(self): pass """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ '*test_custom_class_deprecation.py:1:*"Class" objects in collectors of type "MyModule*', > "*1 passed, 1 warnings in*", ] ) E Failed: nomatch: '*test_custom_class_deprecation.py:1:*"Class" objects in collectors of type "MyModule*' E and: '' E remains unmatched: '*test_custom_class_deprecation.py:1:*"Class" objects in collectors of type "MyModule*' ../../../../pytest-3.10.1/testing/deprecated_test.py:100: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ test_str_args_deprecated ___________________________ tmpdir = local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_str_args_deprecated0') def test_str_args_deprecated(tmpdir): """Deprecate passing strings to pytest.main(). Scheduled for removal in pytest-4.0.""" from _pytest.main import EXIT_NOTESTSCOLLECTED warnings = [] class Collect(object): def pytest_warning_captured(self, warning_message): warnings.append(str(warning_message.message)) > ret = pytest.main("%s -x" % tmpdir, plugins=[Collect()]) testing/deprecated_test.py:168: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) src/_pytest/config/argparsing.py:189: DeprecationWarning _______________________ test_metafunc_addcall_deprecated _______________________ testdir = @pytest.mark.filterwarnings("always:Metafunc.addcall is deprecated") def test_metafunc_addcall_deprecated(testdir): testdir.makepyfile( """ def pytest_generate_tests(metafunc): metafunc.addcall({'i': 1}) metafunc.addcall({'i': 2}) def test_func(i): pass """ ) res = testdir.runpytest("-s") > assert res.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c64bb9810>.ret ../../../../pytest-3.10.1/testing/deprecated_test.py:213: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ test_pytest_catchlog_deprecated[catchlog] ___________________ testdir = plugin = 'catchlog' @pytest.mark.parametrize("plugin", ["catchlog", "capturelog"]) def test_pytest_catchlog_deprecated(testdir, plugin): testdir.makepyfile( """ def test_func(pytestconfig): pytestconfig.pluginmanager.register(None, 'pytest_{}') """.format( plugin ) ) res = testdir.runpytest() > assert res.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c6426b710>.ret ../../../../pytest-3.10.1/testing/deprecated_test.py:244: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ test_pytest_catchlog_deprecated[capturelog] __________________ testdir = plugin = 'capturelog' @pytest.mark.parametrize("plugin", ["catchlog", "capturelog"]) def test_pytest_catchlog_deprecated(testdir, plugin): testdir.makepyfile( """ def test_func(pytestconfig): pytestconfig.pluginmanager.register(None, 'pytest_{}') """.format( plugin ) ) res = testdir.runpytest() > assert res.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63f73950>.ret ../../../../pytest-3.10.1/testing/deprecated_test.py:244: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________ test_pytest_plugins_in_non_top_level_conftest_deprecated ___________ testdir = def test_pytest_plugins_in_non_top_level_conftest_deprecated(testdir): from _pytest.deprecated import PYTEST_PLUGINS_FROM_NON_TOP_LEVEL_CONFTEST testdir.makepyfile( **{ "subdirectory/conftest.py": """ pytest_plugins=['capture'] """ } ) testdir.makepyfile( """ def test_func(): pass """ ) res = testdir.runpytest() > assert res.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63ca05d0>.ret ../../../../pytest-3.10.1/testing/deprecated_test.py:267: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____ test_pytest_plugins_in_non_top_level_conftest_deprecated_pyargs[True] _____ testdir = use_pyargs = True @pytest.mark.parametrize("use_pyargs", [True, False]) def test_pytest_plugins_in_non_top_level_conftest_deprecated_pyargs( testdir, use_pyargs ): """When using --pyargs, do not emit the warning about non-top-level conftest warnings (#4039, #4044)""" from _pytest.deprecated import PYTEST_PLUGINS_FROM_NON_TOP_LEVEL_CONFTEST files = { "src/pkg/__init__.py": "", "src/pkg/conftest.py": "", "src/pkg/test_root.py": "def test(): pass", "src/pkg/sub/__init__.py": "", "src/pkg/sub/conftest.py": "pytest_plugins=['capture']", "src/pkg/sub/test_bar.py": "def test(): pass", } testdir.makepyfile(**files) testdir.syspathinsert(testdir.tmpdir.join("src")) args = ("--pyargs", "pkg") if use_pyargs else () res = testdir.runpytest(*args) > assert res.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c6484c2d0>.ret ../../../../pytest-3.10.1/testing/deprecated_test.py:296: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____ test_pytest_plugins_in_non_top_level_conftest_deprecated_pyargs[False] ____ testdir = use_pyargs = False @pytest.mark.parametrize("use_pyargs", [True, False]) def test_pytest_plugins_in_non_top_level_conftest_deprecated_pyargs( testdir, use_pyargs ): """When using --pyargs, do not emit the warning about non-top-level conftest warnings (#4039, #4044)""" from _pytest.deprecated import PYTEST_PLUGINS_FROM_NON_TOP_LEVEL_CONFTEST files = { "src/pkg/__init__.py": "", "src/pkg/conftest.py": "", "src/pkg/test_root.py": "def test(): pass", "src/pkg/sub/__init__.py": "", "src/pkg/sub/conftest.py": "pytest_plugins=['capture']", "src/pkg/sub/test_bar.py": "def test(): pass", } testdir.makepyfile(**files) testdir.syspathinsert(testdir.tmpdir.join("src")) args = ("--pyargs", "pkg") if use_pyargs else () res = testdir.runpytest(*args) > assert res.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c64188850>.ret ../../../../pytest-3.10.1/testing/deprecated_test.py:296: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________ test_fixture_named_request __________________________ testdir = def test_fixture_named_request(testdir): testdir.copy_example() result = testdir.runpytest() result.stdout.fnmatch_lines( [ > "*'request' is a reserved name for fixtures and will raise an error in future versions" ] ) E Failed: nomatch: "*'request' is a reserved name for fixtures and will raise an error in future versions" E and: '' E remains unmatched: "*'request' is a reserved name for fixtures and will raise an error in future versions" ../../../../pytest-3.10.1/testing/deprecated_test.py:406: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________ TestBinReprIntegration.test_pytest_assertrepr_compare_called _________ self = testdir = def test_pytest_assertrepr_compare_called(self, testdir): testdir.makeconftest( """ import pytest values = [] def pytest_assertrepr_compare(op, left, right): values.append((op, left, right)) @pytest.fixture def list(request): return values """ ) testdir.makepyfile( """ def test_hello(): assert 0 == 1 def test_check(list): assert list == [("==", 0, 1)] """ ) result = testdir.runpytest("-v") > result.stdout.fnmatch_lines(["*test_hello*FAIL*", "*test_check*PASS*"]) E Failed: nomatch: '*test_hello*FAIL*' E and: '' E remains unmatched: '*test_hello*FAIL*' ../../../../pytest-3.10.1/testing/test_assertion.py:315: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestFormatExplanation.test_special_chars_full _________________ self = testdir = def test_special_chars_full(self, testdir): # Issue 453, for the bug this would raise IndexError testdir.makepyfile( """ def test_foo(): assert '\\n}' == '' """ ) result = testdir.runpytest() > assert result.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63dfc250>.ret ../../../../pytest-3.10.1/testing/test_assertion.py:561: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestTruncateExplanation.test_full_output_truncated ______________ self = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c64287790> testdir = def test_full_output_truncated(self, monkeypatch, testdir): """ Test against full runpytest() output. """ line_count = 7 line_len = 100 expected_truncated_lines = 2 testdir.makepyfile( r""" def test_many_lines(): a = list([str(i)[0] * %d for i in range(%d)]) b = a[::2] a = '\n'.join(map(str, a)) b = '\n'.join(map(str, b)) assert a == b """ % (line_len, line_count) ) monkeypatch.delenv("CI", raising=False) result = testdir.runpytest() # without -vv, truncate the message showing a few diff lines only result.stdout.fnmatch_lines( [ "*- 1*", "*- 3*", "*- 5*", > "*truncated (%d lines hidden)*use*-vv*" % expected_truncated_lines, ] ) E Failed: nomatch: '*- 1*' E and: '' E remains unmatched: '*- 1*' ../../../../pytest-3.10.1/testing/test_assertion.py:732: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ test_python25_compile_issue257 ________________________ testdir = def test_python25_compile_issue257(testdir): testdir.makepyfile( """ def test_rewritten(): assert 1 == 2 # some comment """ ) result = testdir.runpytest() > assert result.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c64d136d0>.ret ../../../../pytest-3.10.1/testing/test_assertion.py:753: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________________ test_rewritten ________________________________ testdir = def test_rewritten(testdir): testdir.makepyfile( """ def test_rewritten(): assert "@py_builtins" in globals() """ ) > assert testdir.runpytest().ret == 0 E AssertionError: assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c642b85d0>.ret E + where <_pytest.pytester.RunResult object at 0x7f5c642b85d0> = >() E + where > = .runpytest ../../../../pytest-3.10.1/testing/test_assertion.py:769: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ test_pytest_assertrepr_compare_integration __________________ testdir = def test_pytest_assertrepr_compare_integration(testdir): testdir.makepyfile( """ def test_hello(): x = set(range(100)) y = x.copy() y.remove(50) assert x == y """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( > ["*def test_hello():*", "*assert x == y*", "*E*Extra items*left*", "*E*50*"] ) E Failed: nomatch: '*def test_hello():*' E and: '' E remains unmatched: '*def test_hello():*' ../../../../pytest-3.10.1/testing/test_assertion.py:802: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ test_sequence_comparison_uses_repr ______________________ testdir = def test_sequence_comparison_uses_repr(testdir): testdir.makepyfile( """ def test_hello(): x = set("hello x") y = set("hello y") assert x == y """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ "*def test_hello():*", "*assert x == y*", "*E*Extra items*left*", "*E*'x'*", "*E*Extra items*right*", > "*E*'y'*", ] ) E Failed: nomatch: '*def test_hello():*' E and: '' E remains unmatched: '*def test_hello():*' ../../../../pytest-3.10.1/testing/test_assertion.py:823: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ test_assertrepr_loaded_per_dir ________________________ testdir = def test_assertrepr_loaded_per_dir(testdir): testdir.makepyfile(test_base=["def test_base(): assert 1 == 2"]) a = testdir.mkdir("a") a_test = a.join("test_a.py") a_test.write("def test_a(): assert 1 == 2") a_conftest = a.join("conftest.py") a_conftest.write('def pytest_assertrepr_compare(): return ["summary a"]') b = testdir.mkdir("b") b_test = b.join("test_b.py") b_test.write("def test_b(): assert 1 == 2") b_conftest = b.join("conftest.py") b_conftest.write('def pytest_assertrepr_compare(): return ["summary b"]') result = testdir.runpytest() result.stdout.fnmatch_lines( [ "*def test_base():*", "*E*assert 1 == 2*", "*def test_a():*", "*E*assert summary a*", "*def test_b():*", > "*E*assert summary b*", ] ) E Failed: nomatch: '*def test_base():*' E and: '' E remains unmatched: '*def test_base():*' ../../../../pytest-3.10.1/testing/test_assertion.py:848: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________________ test_assertion_options ____________________________ testdir = def test_assertion_options(testdir): testdir.makepyfile( """ def test_hello(): x = 3 assert x == 4 """ ) result = testdir.runpytest() > assert "3 == 4" in result.stdout.str() E AssertionError: assert '3 == 4' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c63cafd10>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c63cafd10> = <_pytest.pytester.RunResult object at 0x7f5c64d53390>.stdout ../../../../pytest-3.10.1/testing/test_assertion.py:862: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ test_triple_quoted_string_issue113 ______________________ testdir = def test_triple_quoted_string_issue113(testdir): testdir.makepyfile( """ def test_hello(): assert "" == ''' '''""" ) result = testdir.runpytest("--fulltrace") > result.stdout.fnmatch_lines(["*1 failed*"]) E Failed: nomatch: '*1 failed*' E and: '' E remains unmatched: '*1 failed*' ../../../../pytest-3.10.1/testing/test_assertion.py:875: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________________ test_traceback_failure ____________________________ testdir = def test_traceback_failure(testdir): p1 = testdir.makepyfile( """ def g(): return 2 def f(x): assert x == g() def test_onefails(): f(3) """ ) result = testdir.runpytest(p1, "--tb=long") result.stdout.fnmatch_lines( [ "*test_traceback_failure.py F*", "====* FAILURES *====", "____*____", "", " def test_onefails():", "> f(3)", "", "*test_*.py:6: ", "_ _ _ *", # "", " def f(x):", "> assert x == g()", "E assert 3 == 2", "E + where 2 = g()", "", > "*test_traceback_failure.py:4: AssertionError", ] ) E Failed: nomatch: '*test_traceback_failure.py F*' E and: '' E remains unmatched: '*test_traceback_failure.py F*' ../../../../pytest-3.10.1/testing/test_assertion.py:908: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ test_exception_handling_no_traceback _____________________ testdir = @pytest.mark.skipif( sys.version_info[:2] <= (3, 3), reason="Python 3.4+ shows chained exceptions on multiprocess", ) def test_exception_handling_no_traceback(testdir): """ Handle chain exceptions in tasks submitted by the multiprocess module (#1984). """ p1 = testdir.makepyfile( """ from multiprocessing import Pool def process_task(n): assert n == 10 def multitask_job(): tasks = [1] with Pool(processes=1) as pool: pool.map(process_task, tasks) def test_multitask_job(): multitask_job() """ ) result = testdir.runpytest(p1, "--tb=long") result.stdout.fnmatch_lines( [ "====* FAILURES *====", "*multiprocessing.pool.RemoteTraceback:*", "Traceback (most recent call last):", "*assert n == 10", "The above exception was the direct cause of the following exception:", > "> * multitask_job()", ] ) E Failed: nomatch: '====* FAILURES *====' E and: '' E remains unmatched: '====* FAILURES *====' ../../../../pytest-3.10.1/testing/test_assertion.py:966: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ test_recursion_source_decode _________________________ testdir = def test_recursion_source_decode(testdir): testdir.makepyfile( """ def test_something(): pass """ ) testdir.makeini( """ [pytest] python_files = *.py """ ) result = testdir.runpytest("--collect-only") result.stdout.fnmatch_lines( """ > """ ) E Failed: nomatch: '' E and: '' E remains unmatched: '' ../../../../pytest-3.10.1/testing/test_assertion.py:999: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ test_AssertionError_message __________________________ testdir = def test_AssertionError_message(testdir): testdir.makepyfile( """ def test_hello(): x,y = 1,2 assert 0, (x,y) """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( """ *def test_hello* *assert 0, (x,y)* *AssertionError: (1, 2)* > """ ) E Failed: nomatch: '*def test_hello*' E and: '' E remains unmatched: '*def test_hello*' ../../../../pytest-3.10.1/testing/test_assertion.py:1017: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ test_diff_newline_at_end ___________________________ monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c642615d0> testdir = def test_diff_newline_at_end(monkeypatch, testdir): testdir.makepyfile( r""" def test_diff(): assert 'asdf' == 'asdf\n' """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( r""" *assert 'asdf' == 'asdf\n' * - asdf * + asdf * ? + > """ ) E Failed: nomatch: "*assert 'asdf' == 'asdf\\n'" E and: '' E remains unmatched: "*assert 'asdf' == 'asdf\\n'" ../../../../pytest-3.10.1/testing/test_assertion.py:1075: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ test_assert_with_unicode ___________________________ monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c64287950> testdir = def test_assert_with_unicode(monkeypatch, testdir): testdir.makepyfile( u""" # -*- coding: utf-8 -*- def test_unicode(): assert u'유니코드' == u'Unicode' """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*AssertionError*"]) E Failed: nomatch: '*AssertionError*' E and: '' E remains unmatched: '*AssertionError*' ../../../../pytest-3.10.1/testing/test_assertion.py:1124: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ test_raise_unprintable_assertion_error ____________________ testdir = def test_raise_unprintable_assertion_error(testdir): testdir.makepyfile( r""" def test_raise_assertion_error(): raise AssertionError('\xff') """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( > [r"> raise AssertionError('\xff')", "E AssertionError: *"] ) E Failed: nomatch: "> raise AssertionError('\\xff')" E and: '' E remains unmatched: "> raise AssertionError('\\xff')" ../../../../pytest-3.10.1/testing/test_assertion.py:1136: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ test_raise_assertion_error_raisin_repr ____________________ testdir = def test_raise_assertion_error_raisin_repr(testdir): testdir.makepyfile( u""" class RaisingRepr(object): def __repr__(self): raise Exception() def test_raising_repr(): raise AssertionError(RaisingRepr()) """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( > ["E AssertionError: "] ) E Failed: nomatch: 'E AssertionError: ' E and: '' E remains unmatched: 'E AssertionError: ' ../../../../pytest-3.10.1/testing/test_assertion.py:1152: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________________ test_issue_1944 ________________________________ testdir = def test_issue_1944(testdir): testdir.makepyfile( """ def f(): return assert f() == 10 """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*1 error*"]) E Failed: nomatch: '*1 error*' E and: '' E remains unmatched: '*1 error*' ../../../../pytest-3.10.1/testing/test_assertion.py:1166: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestAssertionRewrite.test_assertion_message __________________ self = testdir = def test_assertion_message(self, testdir): testdir.makepyfile( """ def test_foo(): assert 1 == 2, "The failure message" """ ) result = testdir.runpytest() > assert result.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c6375ae50>.ret ../../../../pytest-3.10.1/testing/test_assertrewrite.py:197: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________ TestAssertionRewrite.test_assertion_message_multiline _____________ self = testdir = def test_assertion_message_multiline(self, testdir): testdir.makepyfile( """ def test_foo(): assert 1 == 2, "A multiline\\nfailure message" """ ) result = testdir.runpytest() > assert result.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63e98e10>.ret ../../../../pytest-3.10.1/testing/test_assertrewrite.py:210: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestAssertionRewrite.test_assertion_message_tuple _______________ self = testdir = def test_assertion_message_tuple(self, testdir): testdir.makepyfile( """ def test_foo(): assert 1 == 2, (1, 2) """ ) result = testdir.runpytest() > assert result.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c64b7ccd0>.ret ../../../../pytest-3.10.1/testing/test_assertrewrite.py:223: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestAssertionRewrite.test_assertion_message_expr _______________ self = testdir = def test_assertion_message_expr(self, testdir): testdir.makepyfile( """ def test_foo(): assert 1 == 2, 1 + 2 """ ) result = testdir.runpytest() > assert result.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63f63190>.ret ../../../../pytest-3.10.1/testing/test_assertrewrite.py:236: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestAssertionRewrite.test_assertion_message_escape ______________ self = testdir = def test_assertion_message_escape(self, testdir): testdir.makepyfile( """ def test_foo(): assert 1 == 2, 'To be escaped: %' """ ) result = testdir.runpytest() > assert result.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63c9fd10>.ret ../../../../pytest-3.10.1/testing/test_assertrewrite.py:247: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestAssertionRewrite.test_assertion_messages_bytes ______________ self = testdir = @pytest.mark.skipif( sys.version_info < (3,), reason="bytes is a string type in python 2" ) def test_assertion_messages_bytes(self, testdir): testdir.makepyfile("def test_bytes_assertion():\n assert False, b'ohai!'\n") result = testdir.runpytest() > assert result.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63caf410>.ret ../../../../pytest-3.10.1/testing/test_assertrewrite.py:258: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestAssertionRewrite.test_at_operator_issue1290 ________________ self = testdir = @pytest.mark.skipif("sys.version_info < (3,5)") def test_at_operator_issue1290(self, testdir): testdir.makepyfile( """ class Matrix(object): def __init__(self, num): self.num = num def __matmul__(self, other): return self.num * other.num def test_multmat_operator(): assert Matrix(2) @ Matrix(3) == 6""" ) > testdir.runpytest().assert_outcomes(passed=1) ../../../../pytest-3.10.1/testing/test_assertrewrite.py:414: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c63c14290> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ TestRewriteOnImport.test_pycache_is_a_file __________________ self = testdir = def test_pycache_is_a_file(self, testdir): testdir.tmpdir.join("__pycache__").write("Hello") testdir.makepyfile( """ def test_rewritten(): assert "@py_builtins" in globals()""" ) > assert testdir.runpytest().ret == 0 E AssertionError: assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63df1e10>.ret E + where <_pytest.pytester.RunResult object at 0x7f5c63df1e10> = >() E + where > = .runpytest ../../../../pytest-3.10.1/testing/test_assertrewrite.py:637: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestRewriteOnImport.test_pycache_is_readonly _________________ self = testdir = def test_pycache_is_readonly(self, testdir): cache = testdir.tmpdir.mkdir("__pycache__") old_mode = cache.stat().mode cache.chmod(old_mode ^ stat.S_IWRITE) testdir.makepyfile( """ def test_rewritten(): assert "@py_builtins" in globals()""" ) try: > assert testdir.runpytest().ret == 0 E AssertionError: assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c640b1510>.ret E + where <_pytest.pytester.RunResult object at 0x7f5c640b1510> = >() E + where > = .runpytest ../../../../pytest-3.10.1/testing/test_assertrewrite.py:649: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ TestRewriteOnImport.test_zipfile _______________________ self = testdir = def test_zipfile(self, testdir): z = testdir.tmpdir.join("myzip.zip") z_fn = str(z) f = zipfile.ZipFile(z_fn, "w") try: f.writestr("test_gum/__init__.py", "") f.writestr("test_gum/test_lizard.py", "") finally: f.close() z.chmod(256) testdir.makepyfile( """ import sys sys.path.append(%r) import test_gum.test_lizard""" % (z_fn,) ) > assert testdir.runpytest().ret == EXIT_NOTESTSCOLLECTED E AssertionError: assert 3 == 5 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c648e3710>.ret E + where <_pytest.pytester.RunResult object at 0x7f5c648e3710> = >() E + where > = .runpytest ../../../../pytest-3.10.1/testing/test_assertrewrite.py:670: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ TestRewriteOnImport.test_readonly _______________________ self = testdir = def test_readonly(self, testdir): sub = testdir.mkdir("testing") sub.join("test_readonly.py").write( b""" def test_rewritten(): assert "@py_builtins" in globals() """, "wb", ) old_mode = sub.stat().mode sub.chmod(320) try: > assert testdir.runpytest().ret == 0 E AssertionError: assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63ca6a90>.ret E + where <_pytest.pytester.RunResult object at 0x7f5c63ca6a90> = >() E + where > = .runpytest ../../../../pytest-3.10.1/testing/test_assertrewrite.py:684: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ TestRewriteOnImport.test_orphaned_pyc_file __________________ self = testdir = def test_orphaned_pyc_file(self, testdir): if sys.version_info < (3, 0) and hasattr(sys, "pypy_version_info"): pytest.skip("pypy2 doesn't run orphaned pyc files") testdir.makepyfile( """ import orphan def test_it(): assert orphan.value == 17 """ ) testdir.makepyfile( orphan=""" value = 17 """ ) py_compile.compile("orphan.py") os.remove("orphan.py") # Python 3 puts the .pyc files in a __pycache__ directory, and will # not import from there without source. It will import a .pyc from # the source location though. if not os.path.exists("orphan.pyc"): pycs = glob.glob("__pycache__/orphan.*.pyc") assert len(pycs) == 1 os.rename(pycs[0], "orphan.pyc") > assert testdir.runpytest().ret == 0 E AssertionError: assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63ea2650>.ret E + where <_pytest.pytester.RunResult object at 0x7f5c63ea2650> = >() E + where > = .runpytest ../../../../pytest-3.10.1/testing/test_assertrewrite.py:727: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ TestRewriteOnImport.test_package _______________________ self = testdir = def test_package(self, testdir): pkg = testdir.tmpdir.join("pkg") pkg.mkdir() pkg.join("__init__.py").ensure() pkg.join("test_blah.py").write( """ def test_rewritten(): assert "@py_builtins" in globals()""" ) > assert testdir.runpytest().ret == 0 E AssertionError: assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63fa30d0>.ret E + where <_pytest.pytester.RunResult object at 0x7f5c63fa30d0> = >() E + where > = .runpytest ../../../../pytest-3.10.1/testing/test_assertrewrite.py:761: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestRewriteOnImport.test_translate_newlines __________________ self = testdir = def test_translate_newlines(self, testdir): content = "def test_rewritten():\r\n assert '@py_builtins' in globals()" b = content.encode("utf-8") testdir.tmpdir.join("test_newlines.py").write(b, "wb") > assert testdir.runpytest().ret == 0 E AssertionError: assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c64287350>.ret E + where <_pytest.pytester.RunResult object at 0x7f5c64287350> = >() E + where > = .runpytest ../../../../pytest-3.10.1/testing/test_assertrewrite.py:767: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestRewriteOnImport.test_package_without__init__py ______________ self = testdir = @pytest.mark.skipif( sys.version_info < (3, 4), reason="packages without __init__.py not supported on python 2", ) def test_package_without__init__py(self, testdir): pkg = testdir.mkdir("a_package_without_init_py") pkg.join("module.py").ensure() testdir.makepyfile("import a_package_without_init_py.module") > assert testdir.runpytest().ret == EXIT_NOTESTSCOLLECTED E AssertionError: assert 3 == 5 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c6469d310>.ret E + where <_pytest.pytester.RunResult object at 0x7f5c6469d310> = >() E + where > = .runpytest ../../../../pytest-3.10.1/testing/test_assertrewrite.py:777: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___ TestAssertionRewriteHookDetails.test_loader_is_package_false_for_module ____ self = testdir = def test_loader_is_package_false_for_module(self, testdir): testdir.makepyfile( test_fun=""" def test_loader(): assert not __loader__.is_package(__name__) """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["* 1 passed*"]) E Failed: nomatch: '* 1 passed*' E and: '' E remains unmatched: '* 1 passed*' ../../../../pytest-3.10.1/testing/test_assertrewrite.py:883: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___ TestAssertionRewriteHookDetails.test_loader_is_package_true_for_package ____ self = testdir = def test_loader_is_package_true_for_package(self, testdir): testdir.makepyfile( test_fun=""" def test_loader(): assert not __loader__.is_package(__name__) def test_fun(): assert __loader__.is_package('fun') def test_missing(): assert not __loader__.is_package('pytest_not_there') """ ) testdir.mkpydir("fun") result = testdir.runpytest() > result.stdout.fnmatch_lines(["* 3 passed*"]) E Failed: nomatch: '* 3 passed*' E and: '' E remains unmatched: '* 3 passed*' ../../../../pytest-3.10.1/testing/test_assertrewrite.py:900: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________ TestAssertionRewriteHookDetails.test_sys_meta_path_munged ___________ self = testdir = def test_sys_meta_path_munged(self, testdir): testdir.makepyfile( """ def test_meta_path(): import sys; sys.meta_path = []""" ) > assert testdir.runpytest().ret == 0 E AssertionError: assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63caf890>.ret E + where <_pytest.pytester.RunResult object at 0x7f5c63caf890> = >() E + where > = .runpytest ../../../../pytest-3.10.1/testing/test_assertrewrite.py:950: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestAssertionRewriteHookDetails.test_write_pyc ________________ self = testdir = tmpdir = local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_write_pyc1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c648e7d10> def test_write_pyc(self, testdir, tmpdir, monkeypatch): from _pytest.assertion.rewrite import _write_pyc from _pytest.assertion import AssertionState import atomicwrites from contextlib import contextmanager > config = testdir.parseconfig([]) ../../../../pytest-3.10.1/testing/test_assertrewrite.py:958: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________ TestAssertionRewriteHookDetails.test_reload_is_same ______________ self = testdir = def test_reload_is_same(self, testdir): # A file that will be picked up during collecting. testdir.tmpdir.join("file.py").ensure() testdir.tmpdir.join("pytest.ini").write( textwrap.dedent( """ [pytest] python_files = *.py """ ) ) testdir.makepyfile( test_fun=""" import sys try: from imp import reload except ImportError: pass def test_loader(): import file assert sys.modules["file"] is reload(file) """ ) result = testdir.runpytest("-s") > result.stdout.fnmatch_lines(["* 1 passed*"]) E Failed: nomatch: '* 1 passed*' E and: '' E remains unmatched: '* 1 passed*' ../../../../pytest-3.10.1/testing/test_assertrewrite.py:1052: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestAssertionRewriteHookDetails.test_reload_reloads ______________ self = testdir = def test_reload_reloads(self, testdir): """Reloading a module after change picks up the change.""" testdir.tmpdir.join("file.py").write( textwrap.dedent( """ def reloaded(): return False def rewrite_self(): with open(__file__, 'w') as self: self.write('def reloaded(): return True') """ ) ) testdir.tmpdir.join("pytest.ini").write( textwrap.dedent( """ [pytest] python_files = *.py """ ) ) testdir.makepyfile( test_fun=""" import sys try: from imp import reload except ImportError: pass def test_loader(): import file assert not file.reloaded() file.rewrite_self() reload(file) assert file.reloaded() """ ) result = testdir.runpytest("-s") > result.stdout.fnmatch_lines(["* 1 passed*"]) E Failed: nomatch: '* 1 passed*' E and: '' E remains unmatched: '* 1 passed*' ../../../../pytest-3.10.1/testing/test_assertrewrite.py:1094: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________ TestAssertionRewriteHookDetails.test_get_data_support _____________ self = testdir = def test_get_data_support(self, testdir): """Implement optional PEP302 api (#808). """ path = testdir.mkpydir("foo") path.join("test_foo.py").write( textwrap.dedent( """\ class Test(object): def test_foo(self): import pkgutil data = pkgutil.get_data('foo.test_foo', 'data.txt') assert data == b'Hey' """ ) ) path.join("data.txt").write("Hey") result = testdir.runpytest() > result.stdout.fnmatch_lines("*1 passed*") E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/test_assertrewrite.py:1113: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ TestIssue925.test_simple_case _________________________ self = testdir = def test_simple_case(self, testdir): testdir.makepyfile( """ def test_ternary_display(): assert (False == False) == False """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines("*E*assert (False == False) == False") E Failed: nomatch: '*E*assert (False == False) == False' E and: '' E remains unmatched: '*E*assert (False == False) == False' ../../../../pytest-3.10.1/testing/test_assertrewrite.py:1144: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ TestIssue925.test_long_case __________________________ self = testdir = def test_long_case(self, testdir): testdir.makepyfile( """ def test_ternary_display(): assert False == (False == True) == True """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines("*E*assert (False == True) == True") E Failed: nomatch: '*E*assert (False == True) == True' E and: '' E remains unmatched: '*E*assert (False == True) == True' ../../../../pytest-3.10.1/testing/test_assertrewrite.py:1154: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ TestIssue925.test_many_brackets ________________________ self = testdir = def test_many_brackets(self, testdir): testdir.makepyfile( """ def test_ternary_display(): assert True == ((False == True) == True) """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines("*E*assert True == ((False == True) == True)") E Failed: nomatch: '*E*assert True == ((False == True) == True)' E and: '' E remains unmatched: '*E*assert True == ((False == True) == True)' ../../../../pytest-3.10.1/testing/test_assertrewrite.py:1164: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________ TestIssue2121.test_rewrite_python_files_contain_subdirs ____________ self = testdir = def test_rewrite_python_files_contain_subdirs(self, testdir): testdir.makepyfile( **{ "tests/file.py": """ def test_simple_failure(): assert 1 + 1 == 3 """ } ) testdir.makeini( """ [pytest] python_files = tests/**.py """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines("*E*assert (1 + 1) == 3") E Failed: nomatch: '*E*assert (1 + 1) == 3' E and: '' E remains unmatched: '*E*assert (1 + 1) == 3' ../../../../pytest-3.10.1/testing/test_assertrewrite.py:1184: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ TestEarlyRewriteBailout.test_cwd_changed ___________________ self = testdir = @pytest.mark.skipif( sys.platform.startswith("win32"), reason="cannot remove cwd on Windows" ) def test_cwd_changed(self, testdir): testdir.makepyfile( **{ "test_bar.py": """ import os import shutil import tempfile d = tempfile.mkdtemp() os.chdir(d) shutil.rmtree(d) """, "test_foo.py": """ def test(): pass """, } ) result = testdir.runpytest() > result.stdout.fnmatch_lines("* 1 passed in *") E Failed: nomatch: '* 1 passed in *' E and: '' E remains unmatched: '* 1 passed in *' ../../../../pytest-3.10.1/testing/test_assertrewrite.py:1317: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestNewAPI.test_config_cache_makedir _____________________ self = testdir = def test_config_cache_makedir(self, testdir): testdir.makeini("[pytest]") > config = testdir.parseconfigure() ../../../../pytest-3.10.1/testing/test_cacheprovider.py:20: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ TestNewAPI.test_config_cache_dataerror ____________________ self = testdir = def test_config_cache_dataerror(self, testdir): testdir.makeini("[pytest]") > config = testdir.parseconfigure() ../../../../pytest-3.10.1/testing/test_cacheprovider.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________ TestNewAPI.test_cache_writefail_permissions __________________ self = testdir = @pytest.mark.skipif(sys.platform.startswith("win"), reason="no chmod on windows") @pytest.mark.filterwarnings( "ignore:could not create cache path:pytest.PytestWarning" ) def test_cache_writefail_permissions(self, testdir): testdir.makeini("[pytest]") testdir.tmpdir.ensure_dir(".pytest_cache").chmod(0) > config = testdir.parseconfigure() ../../../../pytest-3.10.1/testing/test_cacheprovider.py:52: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________________ TestNewAPI.test_config_cache _________________________ self = testdir = def test_config_cache(self, testdir): testdir.makeconftest( """ def pytest_configure(config): # see that we get cache information early on assert hasattr(config, "cache") """ ) testdir.makepyfile( """ def test_session(pytestconfig): assert hasattr(pytestconfig, "cache") """ ) result = testdir.runpytest() > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63e27750>.ret ../../../../pytest-3.10.1/testing/test_cacheprovider.py:87: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ TestNewAPI.test_cachefuncarg _________________________ self = testdir = def test_cachefuncarg(self, testdir): testdir.makepyfile( """ import pytest def test_cachefuncarg(cache): val = cache.get("some/thing", None) assert val is None cache.set("some/thing", [1]) pytest.raises(TypeError, lambda: cache.get("some/thing")) val = cache.get("some/thing", []) assert val == [1] """ ) result = testdir.runpytest() > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c6321a790>.ret ../../../../pytest-3.10.1/testing/test_cacheprovider.py:104: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestNewAPI.test_custom_rel_cache_dir _____________________ self = testdir = def test_custom_rel_cache_dir(self, testdir): rel_cache_dir = os.path.join("custom_cache_dir", "subdir") testdir.makeini( """ [pytest] cache_dir = {cache_dir} """.format( cache_dir=rel_cache_dir ) ) testdir.makepyfile(test_errored="def test_error():\n assert False") testdir.runpytest() > assert testdir.tmpdir.join(rel_cache_dir).isdir() E AssertionError: assert False E + where False = () E + where = local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_custom_rel_cache_dir0/custom_cache_dir/subdir').isdir E + where local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_custom_rel_cache_dir0/custom_cache_dir/subdir') = ('custom_cache_dir/subdir') E + where = local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_custom_rel_cache_dir0').join E + where local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_custom_rel_cache_dir0') = .tmpdir ../../../../pytest-3.10.1/testing/test_cacheprovider.py:119: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestNewAPI.test_custom_abs_cache_dir _____________________ self = testdir = tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1'))) def test_custom_abs_cache_dir(self, testdir, tmpdir_factory): tmp = str(tmpdir_factory.mktemp("tmp")) abs_cache_dir = os.path.join(tmp, "custom_cache_dir") testdir.makeini( """ [pytest] cache_dir = {cache_dir} """.format( cache_dir=abs_cache_dir ) ) testdir.makepyfile(test_errored="def test_error():\n assert False") testdir.runpytest() > assert py.path.local(abs_cache_dir).isdir() E AssertionError: assert False E + where False = () E + where = local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/tmp0/custom_cache_dir').isdir E + where local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/tmp0/custom_cache_dir') = ('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/tmp0/custom_cache_dir') E + where = .local E + where = py.path ../../../../pytest-3.10.1/testing/test_cacheprovider.py:134: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestNewAPI.test_custom_cache_dir_with_env_var _________________ self = testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c633cf090> def test_custom_cache_dir_with_env_var(self, testdir, monkeypatch): monkeypatch.setenv("env_var", "custom_cache_dir") testdir.makeini( """ [pytest] cache_dir = {cache_dir} """.format( cache_dir="$env_var" ) ) testdir.makepyfile(test_errored="def test_error():\n assert False") testdir.runpytest() > assert testdir.tmpdir.join("custom_cache_dir").isdir() E AssertionError: assert False E + where False = () E + where = local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_custom_cache_dir_with_env_var0/custom_cache_dir').isdir E + where local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_custom_cache_dir_with_env_var0/custom_cache_dir') = ('custom_cache_dir') E + where = local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_custom_cache_dir_with_env_var0').join E + where local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_custom_cache_dir_with_env_var0') = .tmpdir ../../../../pytest-3.10.1/testing/test_cacheprovider.py:148: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ test_cache_reportheader ____________________________ testdir = def test_cache_reportheader(testdir): testdir.makepyfile( """ def test_hello(): pass """ ) result = testdir.runpytest("-v") > result.stdout.fnmatch_lines(["cachedir: .pytest_cache"]) E Failed: nomatch: 'cachedir: .pytest_cache' E and: '' E remains unmatched: 'cachedir: .pytest_cache' ../../../../pytest-3.10.1/testing/test_cacheprovider.py:159: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ test_cache_reportheader_external_abspath ___________________ testdir = tmpdir_factory = TempdirFactory(_tmppath_factory=TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1'))) def test_cache_reportheader_external_abspath(testdir, tmpdir_factory): external_cache = tmpdir_factory.mktemp( "test_cache_reportheader_external_abspath_abs" ) testdir.makepyfile( """ def test_hello(): pass """ ) testdir.makeini( """ [pytest] cache_dir = {abscache} """.format( abscache=external_cache ) ) result = testdir.runpytest("-v") result.stdout.fnmatch_lines( > ["cachedir: {abscache}".format(abscache=external_cache)] ) E Failed: nomatch: 'cachedir: /tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_cache_reportheader_external_abspath_abs0' E and: '' E remains unmatched: 'cachedir: /tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_cache_reportheader_external_abspath_abs0' ../../../../pytest-3.10.1/testing/test_cacheprovider.py:184: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________________ test_cache_show ________________________________ testdir = def test_cache_show(testdir): result = testdir.runpytest("--cache-show") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63398950>.ret ../../../../pytest-3.10.1/testing/test_cacheprovider.py:190: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ TestLastFailed.test_lastfailed_usecase ____________________ self = testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c64261c50> def test_lastfailed_usecase(self, testdir, monkeypatch): monkeypatch.setenv("PYTHONDONTWRITEBYTECODE", "1") p = testdir.makepyfile( """ def test_1(): assert 0 def test_2(): assert 0 def test_3(): assert 1 """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*2 failed*"]) E Failed: nomatch: '*2 failed*' E and: '' E remains unmatched: '*2 failed*' ../../../../pytest-3.10.1/testing/test_cacheprovider.py:234: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ TestLastFailed.test_failedfirst_order _____________________ self = testdir = def test_failedfirst_order(self, testdir): testdir.tmpdir.join("test_a.py").write( textwrap.dedent( """\ def test_always_passes(): assert 1 """ ) ) testdir.tmpdir.join("test_b.py").write( textwrap.dedent( """\ def test_always_fails(): assert 0 """ ) ) result = testdir.runpytest() # Test order will be collection order; alphabetical > result.stdout.fnmatch_lines(["test_a.py*", "test_b.py*"]) E Failed: nomatch: 'test_a.py*' E and: '' E remains unmatched: 'test_a.py*' ../../../../pytest-3.10.1/testing/test_cacheprovider.py:281: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestLastFailed.test_lastfailed_failedfirst_order _______________ self = testdir = def test_lastfailed_failedfirst_order(self, testdir): testdir.makepyfile( **{ "test_a.py": """\ def test_always_passes(): assert 1 """, "test_b.py": """\ def test_always_fails(): assert 0 """, } ) result = testdir.runpytest() # Test order will be collection order; alphabetical > result.stdout.fnmatch_lines(["test_a.py*", "test_b.py*"]) E Failed: nomatch: 'test_a.py*' E and: '' E remains unmatched: 'test_a.py*' ../../../../pytest-3.10.1/testing/test_cacheprovider.py:301: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________ TestLastFailed.test_lastfailed_difference_invocations _____________ self = testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c633e66d0> def test_lastfailed_difference_invocations(self, testdir, monkeypatch): monkeypatch.setenv("PYTHONDONTWRITEBYTECODE", "1") testdir.makepyfile( test_a="""\ def test_a1(): assert 0 def test_a2(): assert 1 """, test_b="""\ def test_b1(): assert 0 """, ) p = testdir.tmpdir.join("test_a.py") p2 = testdir.tmpdir.join("test_b.py") result = testdir.runpytest() > result.stdout.fnmatch_lines(["*2 failed*"]) E Failed: nomatch: '*2 failed*' E and: '' E remains unmatched: '*2 failed*' ../../../../pytest-3.10.1/testing/test_cacheprovider.py:325: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestLastFailed.test_lastfailed_usecase_splice _________________ self = testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c63bf3d90> def test_lastfailed_usecase_splice(self, testdir, monkeypatch): monkeypatch.setenv("PYTHONDONTWRITEBYTECODE", "1") testdir.makepyfile( """\ def test_1(): assert 0 """ ) p2 = testdir.tmpdir.join("test_something.py") p2.write( textwrap.dedent( """\ def test_2(): assert 0 """ ) ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*2 failed*"]) E Failed: nomatch: '*2 failed*' E and: '' E remains unmatched: '*2 failed*' ../../../../pytest-3.10.1/testing/test_cacheprovider.py:359: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestLastFailed.test_lastfailed_xpass _____________________ self = testdir = def test_lastfailed_xpass(self, testdir): testdir.inline_runsource( """ import pytest @pytest.mark.xfail def test_hello(): assert 1 > """ ) ../../../../pytest-3.10.1/testing/test_cacheprovider.py:372: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________ TestLastFailed.test_non_serializable_parametrize _______________ self = testdir = def test_non_serializable_parametrize(self, testdir): """Test that failed parametrized tests with unmarshable parameters don't break pytest-cache. """ testdir.makepyfile( r""" import pytest @pytest.mark.parametrize('val', [ b'\xac\x10\x02G', ]) def test_fail(val): assert False """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines("*1 failed in*") E Failed: nomatch: '*1 failed in*' E and: '' E remains unmatched: '*1 failed in*' ../../../../pytest-3.10.1/testing/test_cacheprovider.py:394: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestLastFailed.test_terminal_report_lastfailed ________________ self = testdir = def test_terminal_report_lastfailed(self, testdir): test_a = testdir.makepyfile( test_a=""" def test_a1(): pass def test_a2(): pass """ ) test_b = testdir.makepyfile( test_b=""" def test_b1(): assert 0 def test_b2(): assert 0 """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["collected 4 items", "*2 failed, 2 passed in*"]) E Failed: nomatch: 'collected 4 items' E and: '' E remains unmatched: 'collected 4 items' ../../../../pytest-3.10.1/testing/test_cacheprovider.py:414: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestLastFailed.test_terminal_report_failedfirst ________________ self = testdir = def test_terminal_report_failedfirst(self, testdir): testdir.makepyfile( test_a=""" def test_a1(): assert 0 def test_a2(): pass """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["collected 2 items", "*1 failed, 1 passed in*"]) E Failed: nomatch: 'collected 2 items' E and: '' E remains unmatched: 'collected 2 items' ../../../../pytest-3.10.1/testing/test_cacheprovider.py:456: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestLastFailed.test_lastfailed_collectfailure _________________ self = testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c63cf8c50> def test_lastfailed_collectfailure(self, testdir, monkeypatch): testdir.makepyfile( test_maybe=""" import os env = os.environ if '1' == env['FAILIMPORT']: raise ImportError('fail') def test_hello(): assert '0' == env['FAILTEST'] """ ) def rlf(fail_import, fail_run): monkeypatch.setenv("FAILIMPORT", str(fail_import)) monkeypatch.setenv("FAILTEST", str(fail_run)) testdir.runpytest("-q") config = testdir.parseconfigure() lastfailed = config.cache.get("cache/lastfailed", -1) return lastfailed > lastfailed = rlf(fail_import=0, fail_run=0) ../../../../pytest-3.10.1/testing/test_cacheprovider.py:489: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_cacheprovider.py:485: in rlf config = testdir.parseconfigure() ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestLastFailed.test_lastfailed_failure_subset _________________ self = testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c632ac7d0> def test_lastfailed_failure_subset(self, testdir, monkeypatch): testdir.makepyfile( test_maybe=""" import os env = os.environ if '1' == env['FAILIMPORT']: raise ImportError('fail') def test_hello(): assert '0' == env['FAILTEST'] """ ) testdir.makepyfile( test_maybe2=""" import os env = os.environ if '1' == env['FAILIMPORT']: raise ImportError('fail') def test_hello(): assert '0' == env['FAILTEST'] def test_pass(): pass """ ) def rlf(fail_import, fail_run, args=()): monkeypatch.setenv("FAILIMPORT", str(fail_import)) monkeypatch.setenv("FAILTEST", str(fail_run)) result = testdir.runpytest("-q", "--lf", *args) config = testdir.parseconfigure() lastfailed = config.cache.get("cache/lastfailed", -1) return result, lastfailed > result, lastfailed = rlf(fail_import=0, fail_run=0) ../../../../pytest-3.10.1/testing/test_cacheprovider.py:534: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_cacheprovider.py:530: in rlf config = testdir.parseconfigure() ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________ TestLastFailed.test_lastfailed_creates_cache_when_needed ___________ self = testdir = def test_lastfailed_creates_cache_when_needed(self, testdir): # Issue #1342 testdir.makepyfile(test_empty="") testdir.runpytest("-q", "--lf") assert not os.path.exists(".pytest_cache/v/cache/lastfailed") testdir.makepyfile(test_successful="def test_success():\n assert True") testdir.runpytest("-q", "--lf") assert not os.path.exists(".pytest_cache/v/cache/lastfailed") testdir.makepyfile(test_errored="def test_error():\n assert False") testdir.runpytest("-q", "--lf") > assert os.path.exists(".pytest_cache/v/cache/lastfailed") E AssertionError: assert False E + where False = ('.pytest_cache/v/cache/lastfailed') E + where = .exists E + where = os.path ../../../../pytest-3.10.1/testing/test_cacheprovider.py:563: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestLastFailed.test_xfail_not_considered_failure _______________ self = testdir = def test_xfail_not_considered_failure(self, testdir): testdir.makepyfile( """ import pytest @pytest.mark.xfail def test(): assert 0 """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines("*1 xfailed*") E Failed: nomatch: '*1 xfailed*' E and: '' E remains unmatched: '*1 xfailed*' ../../../../pytest-3.10.1/testing/test_cacheprovider.py:575: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestLastFailed.test_xfail_strict_considered_failure ______________ self = testdir = def test_xfail_strict_considered_failure(self, testdir): testdir.makepyfile( """ import pytest @pytest.mark.xfail(strict=True) def test(): pass """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines("*1 failed*") E Failed: nomatch: '*1 failed*' E and: '' E remains unmatched: '*1 failed*' ../../../../pytest-3.10.1/testing/test_cacheprovider.py:588: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______ TestLastFailed.test_failed_changed_to_xfail_or_skip[mark.xfail] ________ self = testdir = mark = 'mark.xfail' @pytest.mark.parametrize("mark", ["mark.xfail", "mark.skip"]) def test_failed_changed_to_xfail_or_skip(self, testdir, mark): testdir.makepyfile( """ import pytest def test(): assert 0 """ ) result = testdir.runpytest() > assert self.get_cached_last_failed(testdir) == [ "test_failed_changed_to_xfail_or_skip.py::test" ] ../../../../pytest-3.10.1/testing/test_cacheprovider.py:603: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_cacheprovider.py:641: in get_cached_last_failed config = testdir.parseconfigure() ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________ TestLastFailed.test_failed_changed_to_xfail_or_skip[mark.skip] ________ self = testdir = mark = 'mark.skip' @pytest.mark.parametrize("mark", ["mark.xfail", "mark.skip"]) def test_failed_changed_to_xfail_or_skip(self, testdir, mark): testdir.makepyfile( """ import pytest def test(): assert 0 """ ) result = testdir.runpytest() > assert self.get_cached_last_failed(testdir) == [ "test_failed_changed_to_xfail_or_skip.py::test" ] ../../../../pytest-3.10.1/testing/test_cacheprovider.py:603: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_cacheprovider.py:641: in get_cached_last_failed config = testdir.parseconfigure() ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____ TestLastFailed.test_lf_and_ff_prints_no_needless_message[--ff-False] _____ self = quiet = False, opt = '--ff' testdir = @pytest.mark.parametrize("quiet", [True, False]) @pytest.mark.parametrize("opt", ["--ff", "--lf"]) def test_lf_and_ff_prints_no_needless_message(self, quiet, opt, testdir): # Issue 3853 testdir.makepyfile("def test(): assert 0") args = [opt] if quiet: args.append("-q") result = testdir.runpytest(*args) assert "run all" not in result.stdout.str() result = testdir.runpytest(*args) if quiet: assert "run all" not in result.stdout.str() else: > assert "rerun previous" in result.stdout.str() E AssertionError: assert 'rerun previous' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c633e2f90>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c633e2f90> = <_pytest.pytester.RunResult object at 0x7f5c640bd4d0>.stdout ../../../../pytest-3.10.1/testing/test_cacheprovider.py:638: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____ TestLastFailed.test_lf_and_ff_prints_no_needless_message[--lf-False] _____ self = quiet = False, opt = '--lf' testdir = @pytest.mark.parametrize("quiet", [True, False]) @pytest.mark.parametrize("opt", ["--ff", "--lf"]) def test_lf_and_ff_prints_no_needless_message(self, quiet, opt, testdir): # Issue 3853 testdir.makepyfile("def test(): assert 0") args = [opt] if quiet: args.append("-q") result = testdir.runpytest(*args) assert "run all" not in result.stdout.str() result = testdir.runpytest(*args) if quiet: assert "run all" not in result.stdout.str() else: > assert "rerun previous" in result.stdout.str() E AssertionError: assert 'rerun previous' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c6366e490>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c6366e490> = <_pytest.pytester.RunResult object at 0x7f5c63bb1350>.stdout ../../../../pytest-3.10.1/testing/test_cacheprovider.py:638: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestLastFailed.test_cache_cumulative _____________________ self = testdir = def test_cache_cumulative(self, testdir): """ Test workflow where user fixes errors gradually file by file using --lf. """ # 1. initial run test_bar = testdir.makepyfile( test_bar=""" def test_bar_1(): pass def test_bar_2(): assert 0 """ ) test_foo = testdir.makepyfile( test_foo=""" def test_foo_3(): pass def test_foo_4(): assert 0 """ ) testdir.runpytest() > assert self.get_cached_last_failed(testdir) == [ "test_bar.py::test_bar_2", "test_foo.py::test_foo_4", ] ../../../../pytest-3.10.1/testing/test_cacheprovider.py:666: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_cacheprovider.py:641: in get_cached_last_failed config = testdir.parseconfigure() ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________ TestLastFailed.test_lastfailed_no_failures_behavior_all_passed ________ self = testdir = def test_lastfailed_no_failures_behavior_all_passed(self, testdir): testdir.makepyfile( """ def test_1(): assert True def test_2(): assert True """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*2 passed*"]) E Failed: nomatch: '*2 passed*' E and: '' E remains unmatched: '*2 passed*' ../../../../pytest-3.10.1/testing/test_cacheprovider.py:716: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______ TestLastFailed.test_lastfailed_no_failures_behavior_empty_cache ________ self = testdir = def test_lastfailed_no_failures_behavior_empty_cache(self, testdir): testdir.makepyfile( """ def test_1(): assert True def test_2(): assert False """ ) result = testdir.runpytest("--lf", "--cache-clear") > result.stdout.fnmatch_lines(["*1 failed*1 passed*"]) E Failed: nomatch: '*1 failed*1 passed*' E and: '' E remains unmatched: '*1 failed*1 passed*' ../../../../pytest-3.10.1/testing/test_cacheprovider.py:734: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ TestNewFirst.test_newfirst_usecase ______________________ self = testdir = def test_newfirst_usecase(self, testdir): testdir.makepyfile( **{ "test_1/test_1.py": """ def test_1(): assert 1 def test_2(): assert 1 def test_3(): assert 1 """, "test_2/test_2.py": """ def test_1(): assert 1 def test_2(): assert 1 def test_3(): assert 1 """, } ) testdir.tmpdir.join("test_1/test_1.py").setmtime(1) result = testdir.runpytest("-v") result.stdout.fnmatch_lines( [ "*test_1/test_1.py::test_1 PASSED*", "*test_1/test_1.py::test_2 PASSED*", "*test_1/test_1.py::test_3 PASSED*", "*test_2/test_2.py::test_1 PASSED*", "*test_2/test_2.py::test_2 PASSED*", > "*test_2/test_2.py::test_3 PASSED*", ] ) E Failed: nomatch: '*test_1/test_1.py::test_1 PASSED*' E and: '' E remains unmatched: '*test_1/test_1.py::test_1 PASSED*' ../../../../pytest-3.10.1/testing/test_cacheprovider.py:768: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ TestNewFirst.test_newfirst_parametrize ____________________ self = testdir = def test_newfirst_parametrize(self, testdir): testdir.makepyfile( **{ "test_1/test_1.py": """ import pytest @pytest.mark.parametrize('num', [1, 2]) def test_1(num): assert num """, "test_2/test_2.py": """ import pytest @pytest.mark.parametrize('num', [1, 2]) def test_1(num): assert num """, } ) testdir.tmpdir.join("test_1/test_1.py").setmtime(1) result = testdir.runpytest("-v") result.stdout.fnmatch_lines( [ "*test_1/test_1.py::test_1[1*", "*test_1/test_1.py::test_1[2*", "*test_2/test_2.py::test_1[1*", > "*test_2/test_2.py::test_1[2*", ] ) E Failed: nomatch: '*test_1/test_1.py::test_1[1*' E and: '' E remains unmatched: '*test_1/test_1.py::test_1[1*' ../../../../pytest-3.10.1/testing/test_cacheprovider.py:831: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ TestReadme.test_readme_passed _________________________ self = testdir = def test_readme_passed(self, testdir): testdir.makepyfile( """ def test_always_passes(): assert 1 """ ) testdir.runpytest() > assert self.check_readme(testdir) is True ../../../../pytest-3.10.1/testing/test_cacheprovider.py:880: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_cacheprovider.py:868: in check_readme config = testdir.parseconfigure() ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ TestReadme.test_readme_failed _________________________ self = testdir = def test_readme_failed(self, testdir): testdir.makepyfile( """ def test_always_passes(): assert 0 """ ) testdir.runpytest() > assert self.check_readme(testdir) is True ../../../../pytest-3.10.1/testing/test_cacheprovider.py:890: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_cacheprovider.py:868: in check_readme config = testdir.parseconfigure() ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________________ test_gitignore ________________________________ testdir = def test_gitignore(testdir): """Ensure we automatically create .gitignore file in the pytest_cache directory (#3286).""" from _pytest.cacheprovider import Cache > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_cacheprovider.py:897: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________________ test_capturing_unicode[fd] __________________________ testdir = method = 'fd' @pytest.mark.parametrize("method", ["fd", "sys"]) def test_capturing_unicode(testdir, method): if hasattr(sys, "pypy_version_info") and sys.pypy_version_info < (2, 2): pytest.xfail("does not work on pypy < 2.2") if sys.version_info >= (3, 0): obj = "'b\u00f6y'" else: obj = "u'\u00f6y'" testdir.makepyfile( """ # coding=utf8 # taken from issue 227 from nosetests def test_unicode(): import sys print (sys.stdout) print (%s) """ % obj ) result = testdir.runpytest("--capture=%s" % method) > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/test_capture.py:116: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ test_capturing_unicode[sys] __________________________ testdir = method = 'sys' @pytest.mark.parametrize("method", ["fd", "sys"]) def test_capturing_unicode(testdir, method): if hasattr(sys, "pypy_version_info") and sys.pypy_version_info < (2, 2): pytest.xfail("does not work on pypy < 2.2") if sys.version_info >= (3, 0): obj = "'b\u00f6y'" else: obj = "u'\u00f6y'" testdir.makepyfile( """ # coding=utf8 # taken from issue 227 from nosetests def test_unicode(): import sys print (sys.stdout) print (%s) """ % obj ) result = testdir.runpytest("--capture=%s" % method) > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/test_capture.py:116: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ test_capturing_bytes_in_utf8_encoding[fd] ___________________ testdir = method = 'fd' @pytest.mark.parametrize("method", ["fd", "sys"]) def test_capturing_bytes_in_utf8_encoding(testdir, method): testdir.makepyfile( """ def test_unicode(): print ('b\\u00f6y') """ ) result = testdir.runpytest("--capture=%s" % method) > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/test_capture.py:128: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ test_capturing_bytes_in_utf8_encoding[sys] __________________ testdir = method = 'sys' @pytest.mark.parametrize("method", ["fd", "sys"]) def test_capturing_bytes_in_utf8_encoding(testdir, method): testdir.makepyfile( """ def test_unicode(): print ('b\\u00f6y') """ ) result = testdir.runpytest("--capture=%s" % method) > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/test_capture.py:128: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________________ test_collect_capturing ____________________________ testdir = def test_collect_capturing(testdir): p = testdir.makepyfile( """ print ("collect %s failure" % 13) import xyz42123 """ ) result = testdir.runpytest(p) > result.stdout.fnmatch_lines(["*Captured stdout*", "*collect 13 failure*"]) E Failed: nomatch: '*Captured stdout*' E and: '' E remains unmatched: '*Captured stdout*' ../../../../pytest-3.10.1/testing/test_capture.py:139: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestPerTestCapturing.test_capture_and_fixtures ________________ self = testdir = def test_capture_and_fixtures(self, testdir): p = testdir.makepyfile( """ def setup_module(mod): print ("setup module") def setup_function(function): print ("setup " + function.__name__) def test_func1(): print ("in func1") assert 0 def test_func2(): print ("in func2") assert 0 """ ) result = testdir.runpytest(p) result.stdout.fnmatch_lines( [ "setup module*", "setup test_func1*", "in func1*", "setup test_func2*", > "in func2*", ] ) E Failed: nomatch: 'setup module*' E and: '' E remains unmatched: 'setup module*' ../../../../pytest-3.10.1/testing/test_capture.py:165: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ TestPerTestCapturing.test_no_carry_over ____________________ self = testdir = def test_no_carry_over(self, testdir): p = testdir.makepyfile( """ def test_func1(): print ("in func1") def test_func2(): print ("in func2") assert 0 """ ) result = testdir.runpytest(p) s = result.stdout.str() assert "in func1" not in s > assert "in func2" in s E AssertionError: assert 'in func2' in '' ../../../../pytest-3.10.1/testing/test_capture.py:210: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestPerTestCapturing.test_teardown_capturing _________________ self = testdir = def test_teardown_capturing(self, testdir): p = testdir.makepyfile( """ def setup_function(function): print ("setup func1") def teardown_function(function): print ("teardown func1") assert 0 def test_func1(): print ("in func1") pass """ ) result = testdir.runpytest(p) result.stdout.fnmatch_lines( [ "*teardown_function*", "*Captured stdout*", "setup func1*", "in func1*", > "teardown func1*", # "*1 fixture failure*" ] ) E Failed: nomatch: '*teardown_function*' E and: '' E remains unmatched: '*teardown_function*' ../../../../pytest-3.10.1/testing/test_capture.py:232: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestPerTestCapturing.test_teardown_capturing_final ______________ self = testdir = def test_teardown_capturing_final(self, testdir): p = testdir.makepyfile( """ def teardown_module(mod): print ("teardown module") assert 0 def test_func(): pass """ ) result = testdir.runpytest(p) result.stdout.fnmatch_lines( [ "*def teardown_module(mod):*", "*Captured stdout*", "*teardown module*", > "*1 error*", ] ) E Failed: nomatch: '*def teardown_module(mod):*' E and: '' E remains unmatched: '*def teardown_module(mod):*' ../../../../pytest-3.10.1/testing/test_capture.py:253: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ TestPerTestCapturing.test_capturing_outerr __________________ self = testdir = def test_capturing_outerr(self, testdir): p1 = testdir.makepyfile( """\ import sys def test_capturing(): print (42) sys.stderr.write(str(23)) def test_capturing_error(): print (1) sys.stderr.write(str(2)) raise ValueError """ ) result = testdir.runpytest(p1) result.stdout.fnmatch_lines( [ "*test_capturing_outerr.py .F*", "====* FAILURES *====", "____*____", "*test_capturing_outerr.py:8: ValueError", "*--- Captured stdout *call*", "1", "*--- Captured stderr *call*", > "2", ] ) E Failed: nomatch: '*test_capturing_outerr.py .F*' E and: '' E remains unmatched: '*test_capturing_outerr.py .F*' ../../../../pytest-3.10.1/testing/test_capture.py:280: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestCaptureFixture.test_std_functional[opt0] _________________ self = testdir = opt = [] @pytest.mark.parametrize("opt", [[], ["-s"]]) def test_std_functional(self, testdir, opt): reprec = testdir.inline_runsource( """\ def test_hello(capsys): print (42) out, err = capsys.readouterr() assert out.startswith("42") """, > *opt ) ../../../../pytest-3.10.1/testing/test_capture.py:399: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________ TestCaptureFixture.test_std_functional[opt1] _________________ self = testdir = opt = ['-s'] @pytest.mark.parametrize("opt", [[], ["-s"]]) def test_std_functional(self, testdir, opt): reprec = testdir.inline_runsource( """\ def test_hello(capsys): print (42) out, err = capsys.readouterr() assert out.startswith("42") """, > *opt ) ../../../../pytest-3.10.1/testing/test_capture.py:399: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestCaptureFixture.test_capsyscapfd ______________________ self = testdir = def test_capsyscapfd(self, testdir): p = testdir.makepyfile( """\ def test_one(capsys, capfd): pass def test_two(capfd, capsys): pass """ ) result = testdir.runpytest(p) result.stdout.fnmatch_lines( [ "*ERROR*setup*test_one*", "E*capfd*capsys*same*time*", "*ERROR*setup*test_two*", "E*capsys*capfd*same*time*", > "*2 error*", ] ) E Failed: nomatch: '*ERROR*setup*test_one*' E and: '' E remains unmatched: '*ERROR*setup*test_one*' ../../../../pytest-3.10.1/testing/test_capture.py:419: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestCaptureFixture.test_capturing_getfixturevalue _______________ self = testdir = def test_capturing_getfixturevalue(self, testdir): """Test that asking for "capfd" and "capsys" using request.getfixturevalue in the same test is an error. """ testdir.makepyfile( """\ def test_one(capsys, request): request.getfixturevalue("capfd") def test_two(capfd, request): request.getfixturevalue("capsys") """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ "*test_one*", "*capsys*capfd*same*time*", "*test_two*", "*capfd*capsys*same*time*", > "*2 failed in*", ] ) E Failed: nomatch: '*test_one*' E and: '' E remains unmatched: '*test_one*' ../../../../pytest-3.10.1/testing/test_capture.py:442: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ TestCaptureFixture.test_capsyscapfdbinary ___________________ self = testdir = def test_capsyscapfdbinary(self, testdir): p = testdir.makepyfile( """\ def test_one(capsys, capfdbinary): pass """ ) result = testdir.runpytest(p) result.stdout.fnmatch_lines( > ["*ERROR*setup*test_one*", "E*capfdbinary*capsys*same*time*", "*1 error*"] ) E Failed: nomatch: '*ERROR*setup*test_one*' E and: '' E remains unmatched: '*ERROR*setup*test_one*' ../../../../pytest-3.10.1/testing/test_capture.py:455: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___ TestCaptureFixture.test_capture_is_represented_on_failure_issue128[sys] ____ self = testdir = method = 'sys' @pytest.mark.parametrize("method", ["sys", "fd"]) def test_capture_is_represented_on_failure_issue128(self, testdir, method): p = testdir.makepyfile( """\ def test_hello(cap{}): print ("xxx42xxx") assert 0 """.format( method ) ) result = testdir.runpytest(p) > result.stdout.fnmatch_lines(["xxx42xxx"]) E Failed: nomatch: 'xxx42xxx' E and: '' E remains unmatched: 'xxx42xxx' ../../../../pytest-3.10.1/testing/test_capture.py:470: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____ TestCaptureFixture.test_capture_is_represented_on_failure_issue128[fd] ____ self = testdir = method = 'fd' @pytest.mark.parametrize("method", ["sys", "fd"]) def test_capture_is_represented_on_failure_issue128(self, testdir, method): p = testdir.makepyfile( """\ def test_hello(cap{}): print ("xxx42xxx") assert 0 """.format( method ) ) result = testdir.runpytest(p) > result.stdout.fnmatch_lines(["xxx42xxx"]) E Failed: nomatch: 'xxx42xxx' E and: '' E remains unmatched: 'xxx42xxx' ../../../../pytest-3.10.1/testing/test_capture.py:470: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ TestCaptureFixture.test_stdfd_functional ___________________ self = testdir = @needsosdup def test_stdfd_functional(self, testdir): reprec = testdir.inline_runsource( """\ def test_hello(capfd): import os os.write(1, "42".encode('ascii')) out, err = capfd.readouterr() assert out.startswith("42") capfd.close() > """ ) ../../../../pytest-3.10.1/testing/test_capture.py:482: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestCaptureFixture.test_capfdbinary ______________________ self = testdir = @needsosdup def test_capfdbinary(self, testdir): reprec = testdir.inline_runsource( """\ def test_hello(capfdbinary): import os # some likely un-decodable bytes os.write(1, b'\\xfe\\x98\\x20') out, err = capfdbinary.readouterr() assert out == b'\\xfe\\x98\\x20' assert err == b'' > """ ) ../../../../pytest-3.10.1/testing/test_capture.py:497: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestCaptureFixture.test_capsysbinary _____________________ self = testdir = @pytest.mark.skipif( sys.version_info < (3,), reason="only have capsysbinary in python 3" ) def test_capsysbinary(self, testdir): reprec = testdir.inline_runsource( """\ def test_hello(capsysbinary): import sys # some likely un-decodable bytes sys.stdout.buffer.write(b'\\xfe\\x98\\x20') out, err = capsysbinary.readouterr() assert out == b'\\xfe\\x98\\x20' assert err == b'' > """ ) ../../../../pytest-3.10.1/testing/test_capture.py:514: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ TestCaptureFixture.test_partial_setup_failure _________________ self = testdir = def test_partial_setup_failure(self, testdir): p = testdir.makepyfile( """\ def test_hello(capsys, missingarg): pass """ ) result = testdir.runpytest(p) > result.stdout.fnmatch_lines(["*test_partial_setup_failure*", "*1 error*"]) E Failed: nomatch: '*test_partial_setup_failure*' E and: '' E remains unmatched: '*test_partial_setup_failure*' ../../../../pytest-3.10.1/testing/test_capture.py:545: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____ TestCaptureFixture.test_fixture_use_by_other_fixtures_teardown[capsys] ____ self = testdir = cap = 'capsys' @pytest.mark.parametrize("cap", ["capsys", "capfd"]) def test_fixture_use_by_other_fixtures_teardown(self, testdir, cap): """Ensure we can access setup and teardown buffers from teardown when using capsys/capfd (##3033)""" testdir.makepyfile( """\ import sys import pytest import os @pytest.fixture() def fix({cap}): print("setup out") sys.stderr.write("setup err\\n") yield out, err = {cap}.readouterr() assert out == 'setup out\\ncall out\\n' assert err == 'setup err\\ncall err\\n' def test_a(fix): print("call out") sys.stderr.write("call err\\n") """.format( cap=cap ) ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_capture.py:668: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____ TestCaptureFixture.test_fixture_use_by_other_fixtures_teardown[capfd] _____ self = testdir = cap = 'capfd' @pytest.mark.parametrize("cap", ["capsys", "capfd"]) def test_fixture_use_by_other_fixtures_teardown(self, testdir, cap): """Ensure we can access setup and teardown buffers from teardown when using capsys/capfd (##3033)""" testdir.makepyfile( """\ import sys import pytest import os @pytest.fixture() def fix({cap}): print("setup out") sys.stderr.write("setup err\\n") yield out, err = {cap}.readouterr() assert out == 'setup out\\ncall out\\n' assert err == 'setup err\\ncall err\\n' def test_a(fix): print("call out") sys.stderr.write("call err\\n") """.format( cap=cap ) ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_capture.py:668: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ test_setup_failure_does_not_kill_capturing __________________ testdir = def test_setup_failure_does_not_kill_capturing(testdir): sub1 = testdir.mkpydir("sub1") sub1.join("conftest.py").write( textwrap.dedent( """\ def pytest_runtest_setup(item): raise ValueError(42) """ ) ) sub1.join("test_mod.py").write("def test_func1(): pass") result = testdir.runpytest(testdir.tmpdir, "--traceconfig") > result.stdout.fnmatch_lines(["*ValueError(42)*", "*1 error*"]) E Failed: nomatch: '*ValueError(42)*' E and: '' E remains unmatched: '*ValueError(42)*' ../../../../pytest-3.10.1/testing/test_capture.py:684: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ test_capture_conftest_runtest_setup ______________________ testdir = def test_capture_conftest_runtest_setup(testdir): testdir.makeconftest( """ def pytest_runtest_setup(): print ("hello19") """ ) testdir.makepyfile("def test_func(): pass") result = testdir.runpytest() > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c636542d0>.ret ../../../../pytest-3.10.1/testing/test_capture.py:710: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ test_capture_badoutput_issue412 ________________________ testdir = def test_capture_badoutput_issue412(testdir): testdir.makepyfile( """ import os def test_func(): omg = bytearray([1,129,1]) os.write(1, omg) assert 0 """ ) result = testdir.runpytest("--cap=fd") result.stdout.fnmatch_lines( """ *def test_func* *assert 0* *Captured* *1 failed* > """ ) E Failed: nomatch: '*def test_func*' E and: '' E remains unmatched: '*def test_func*' ../../../../pytest-3.10.1/testing/test_capture.py:732: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ test_capture_early_option_parsing _______________________ testdir = def test_capture_early_option_parsing(testdir): testdir.makeconftest( """ def pytest_runtest_setup(): print ("hello19") """ ) testdir.makepyfile("def test_func(): pass") result = testdir.runpytest("-vs") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c632d1cd0>.ret ../../../../pytest-3.10.1/testing/test_capture.py:745: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________ test_capture_binary_output __________________________ testdir = def test_capture_binary_output(testdir): testdir.makepyfile( r""" import pytest def test_a(): import sys import subprocess subprocess.call([sys.executable, __file__]) def test_foo(): import os;os.write(1, b'\xc3') if __name__ == '__main__': test_foo() """ ) result = testdir.runpytest("--assert=plain") > result.assert_outcomes(passed=2) ../../../../pytest-3.10.1/testing/test_capture.py:767: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c633cf250> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ test_error_attribute_issue555 _________________________ testdir = def test_error_attribute_issue555(testdir): testdir.makepyfile( """ import sys def test_capattr(): assert sys.stdout.errors == "strict" assert sys.stderr.errors == "strict" """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_capture.py:1340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ test_dontreadfrominput_has_encoding ______________________ testdir = def test_dontreadfrominput_has_encoding(testdir): testdir.makepyfile( """ import sys def test_capattr(): # should not raise AttributeError assert sys.stdout.encoding assert sys.stderr.encoding """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_capture.py:1373: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________ TestCollector.test_check_equality _______________________ self = testdir = def test_check_equality(self, testdir): modcol = testdir.getmodulecol( """ def test_pass(): pass def test_fail(): assert 0 > """ ) ../../../../pytest-3.10.1/testing/test_collection.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________________ TestCollector.test_getparent _________________________ self = testdir = def test_getparent(self, testdir): modcol = testdir.getmodulecol( """ class TestClass(object): def test_foo(): pass > """ ) ../../../../pytest-3.10.1/testing/test_collection.py:74: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ TestCollector.test_getcustomfile_roundtrip __________________ self = testdir = def test_getcustomfile_roundtrip(self, testdir): hello = testdir.makefile(".xxx", hello="world") testdir.makepyfile( conftest=""" import pytest class CustomFile(pytest.File): pass def pytest_collect_file(path, parent): if path.ext == ".xxx": return CustomFile(path, parent=parent) """ ) > node = testdir.getpathnode(hello) ../../../../pytest-3.10.1/testing/test_collection.py:100: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:733: in getpathnode config = self.parseconfigure(path) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________ TestCollector.test_can_skip_class_with_test_attr _______________ self = testdir = def test_can_skip_class_with_test_attr(self, testdir): """Assure test class is skipped when using `__test__=False` (See #2007).""" testdir.makepyfile( """ class TestFoo(object): __test__ = False def __init__(self): pass def test_foo(): assert True """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["collected 0 items", "*no tests ran in*"]) E Failed: nomatch: 'collected 0 items' E and: '' E remains unmatched: 'collected 0 items' ../../../../pytest-3.10.1/testing/test_collection.py:120: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestCollectFS.test_ignored_certain_directories ________________ self = testdir = def test_ignored_certain_directories(self, testdir): tmpdir = testdir.tmpdir tmpdir.ensure("build", "test_notfound.py") tmpdir.ensure("dist", "test_notfound.py") tmpdir.ensure("_darcs", "test_notfound.py") tmpdir.ensure("CVS", "test_notfound.py") tmpdir.ensure("{arch}", "test_notfound.py") tmpdir.ensure(".whatever", "test_notfound.py") tmpdir.ensure(".bzr", "test_notfound.py") tmpdir.ensure("normal", "test_found.py") for x in tmpdir.visit("test_*.py"): x.write("def test_hello(): pass") result = testdir.runpytest("--collect-only") s = result.stdout.str() assert "test_notfound" not in s > assert "test_found" in s E AssertionError: assert 'test_found' in '' ../../../../pytest-3.10.1/testing/test_collection.py:140: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestCollectFS.test_ignored_virtualenvs[activate] _______________ self = testdir = fname = 'activate' @pytest.mark.parametrize( "fname", ( "activate", "activate.csh", "activate.fish", "Activate", "Activate.bat", "Activate.ps1", ), ) def test_ignored_virtualenvs(self, testdir, fname): bindir = "Scripts" if sys.platform.startswith("win") else "bin" testdir.tmpdir.ensure("virtual", bindir, fname) testfile = testdir.tmpdir.ensure("virtual", "test_invenv.py") testfile.write("def test_hello(): pass") # by default, ignore tests inside a virtualenv result = testdir.runpytest() assert "test_invenv" not in result.stdout.str() # allow test collection if user insists result = testdir.runpytest("--collect-in-virtualenv") > assert "test_invenv" in result.stdout.str() E AssertionError: assert 'test_invenv' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c63303a10>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c63303a10> = <_pytest.pytester.RunResult object at 0x7f5c643ca890>.stdout ../../../../pytest-3.10.1/testing/test_collection.py:164: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestCollectFS.test_ignored_virtualenvs[activate.csh] _____________ self = testdir = fname = 'activate.csh' @pytest.mark.parametrize( "fname", ( "activate", "activate.csh", "activate.fish", "Activate", "Activate.bat", "Activate.ps1", ), ) def test_ignored_virtualenvs(self, testdir, fname): bindir = "Scripts" if sys.platform.startswith("win") else "bin" testdir.tmpdir.ensure("virtual", bindir, fname) testfile = testdir.tmpdir.ensure("virtual", "test_invenv.py") testfile.write("def test_hello(): pass") # by default, ignore tests inside a virtualenv result = testdir.runpytest() assert "test_invenv" not in result.stdout.str() # allow test collection if user insists result = testdir.runpytest("--collect-in-virtualenv") > assert "test_invenv" in result.stdout.str() E AssertionError: assert 'test_invenv' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c63430b10>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c63430b10> = <_pytest.pytester.RunResult object at 0x7f5c62fc6d90>.stdout ../../../../pytest-3.10.1/testing/test_collection.py:164: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________ TestCollectFS.test_ignored_virtualenvs[activate.fish] _____________ self = testdir = fname = 'activate.fish' @pytest.mark.parametrize( "fname", ( "activate", "activate.csh", "activate.fish", "Activate", "Activate.bat", "Activate.ps1", ), ) def test_ignored_virtualenvs(self, testdir, fname): bindir = "Scripts" if sys.platform.startswith("win") else "bin" testdir.tmpdir.ensure("virtual", bindir, fname) testfile = testdir.tmpdir.ensure("virtual", "test_invenv.py") testfile.write("def test_hello(): pass") # by default, ignore tests inside a virtualenv result = testdir.runpytest() assert "test_invenv" not in result.stdout.str() # allow test collection if user insists result = testdir.runpytest("--collect-in-virtualenv") > assert "test_invenv" in result.stdout.str() E AssertionError: assert 'test_invenv' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c63350d50>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c63350d50> = <_pytest.pytester.RunResult object at 0x7f5c633446d0>.stdout ../../../../pytest-3.10.1/testing/test_collection.py:164: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestCollectFS.test_ignored_virtualenvs[Activate] _______________ self = testdir = fname = 'Activate' @pytest.mark.parametrize( "fname", ( "activate", "activate.csh", "activate.fish", "Activate", "Activate.bat", "Activate.ps1", ), ) def test_ignored_virtualenvs(self, testdir, fname): bindir = "Scripts" if sys.platform.startswith("win") else "bin" testdir.tmpdir.ensure("virtual", bindir, fname) testfile = testdir.tmpdir.ensure("virtual", "test_invenv.py") testfile.write("def test_hello(): pass") # by default, ignore tests inside a virtualenv result = testdir.runpytest() assert "test_invenv" not in result.stdout.str() # allow test collection if user insists result = testdir.runpytest("--collect-in-virtualenv") > assert "test_invenv" in result.stdout.str() E AssertionError: assert 'test_invenv' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c64261f50>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c64261f50> = <_pytest.pytester.RunResult object at 0x7f5c63016450>.stdout ../../../../pytest-3.10.1/testing/test_collection.py:164: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestCollectFS.test_ignored_virtualenvs[Activate.bat] _____________ self = testdir = fname = 'Activate.bat' @pytest.mark.parametrize( "fname", ( "activate", "activate.csh", "activate.fish", "Activate", "Activate.bat", "Activate.ps1", ), ) def test_ignored_virtualenvs(self, testdir, fname): bindir = "Scripts" if sys.platform.startswith("win") else "bin" testdir.tmpdir.ensure("virtual", bindir, fname) testfile = testdir.tmpdir.ensure("virtual", "test_invenv.py") testfile.write("def test_hello(): pass") # by default, ignore tests inside a virtualenv result = testdir.runpytest() assert "test_invenv" not in result.stdout.str() # allow test collection if user insists result = testdir.runpytest("--collect-in-virtualenv") > assert "test_invenv" in result.stdout.str() E AssertionError: assert 'test_invenv' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c630165d0>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c630165d0> = <_pytest.pytester.RunResult object at 0x7f5c63016310>.stdout ../../../../pytest-3.10.1/testing/test_collection.py:164: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestCollectFS.test_ignored_virtualenvs[Activate.ps1] _____________ self = testdir = fname = 'Activate.ps1' @pytest.mark.parametrize( "fname", ( "activate", "activate.csh", "activate.fish", "Activate", "Activate.bat", "Activate.ps1", ), ) def test_ignored_virtualenvs(self, testdir, fname): bindir = "Scripts" if sys.platform.startswith("win") else "bin" testdir.tmpdir.ensure("virtual", bindir, fname) testfile = testdir.tmpdir.ensure("virtual", "test_invenv.py") testfile.write("def test_hello(): pass") # by default, ignore tests inside a virtualenv result = testdir.runpytest() assert "test_invenv" not in result.stdout.str() # allow test collection if user insists result = testdir.runpytest("--collect-in-virtualenv") > assert "test_invenv" in result.stdout.str() E AssertionError: assert 'test_invenv' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c6364c690>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c6364c690> = <_pytest.pytester.RunResult object at 0x7f5c648e7b90>.stdout ../../../../pytest-3.10.1/testing/test_collection.py:164: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __ TestCollectFS.test_ignored_virtualenvs_norecursedirs_precedence[activate] ___ self = testdir = fname = 'activate' @pytest.mark.parametrize( "fname", ( "activate", "activate.csh", "activate.fish", "Activate", "Activate.bat", "Activate.ps1", ), ) def test_ignored_virtualenvs_norecursedirs_precedence(self, testdir, fname): bindir = "Scripts" if sys.platform.startswith("win") else "bin" # norecursedirs takes priority testdir.tmpdir.ensure(".virtual", bindir, fname) testfile = testdir.tmpdir.ensure(".virtual", "test_invenv.py") testfile.write("def test_hello(): pass") result = testdir.runpytest("--collect-in-virtualenv") assert "test_invenv" not in result.stdout.str() # ...unless the virtualenv is explicitly given on the CLI result = testdir.runpytest("--collect-in-virtualenv", ".virtual") > assert "test_invenv" in result.stdout.str() E AssertionError: assert 'test_invenv' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c6302f450>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c6302f450> = <_pytest.pytester.RunResult object at 0x7f5c6305f090>.stdout ../../../../pytest-3.10.1/testing/test_collection.py:190: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestCollectFS.test_ignored_virtualenvs_norecursedirs_precedence[activate.csh] _ self = testdir = fname = 'activate.csh' @pytest.mark.parametrize( "fname", ( "activate", "activate.csh", "activate.fish", "Activate", "Activate.bat", "Activate.ps1", ), ) def test_ignored_virtualenvs_norecursedirs_precedence(self, testdir, fname): bindir = "Scripts" if sys.platform.startswith("win") else "bin" # norecursedirs takes priority testdir.tmpdir.ensure(".virtual", bindir, fname) testfile = testdir.tmpdir.ensure(".virtual", "test_invenv.py") testfile.write("def test_hello(): pass") result = testdir.runpytest("--collect-in-virtualenv") assert "test_invenv" not in result.stdout.str() # ...unless the virtualenv is explicitly given on the CLI result = testdir.runpytest("--collect-in-virtualenv", ".virtual") > assert "test_invenv" in result.stdout.str() E AssertionError: assert 'test_invenv' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c6329ff50>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c6329ff50> = <_pytest.pytester.RunResult object at 0x7f5c63301c90>.stdout ../../../../pytest-3.10.1/testing/test_collection.py:190: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestCollectFS.test_ignored_virtualenvs_norecursedirs_precedence[activate.fish] self = testdir = fname = 'activate.fish' @pytest.mark.parametrize( "fname", ( "activate", "activate.csh", "activate.fish", "Activate", "Activate.bat", "Activate.ps1", ), ) def test_ignored_virtualenvs_norecursedirs_precedence(self, testdir, fname): bindir = "Scripts" if sys.platform.startswith("win") else "bin" # norecursedirs takes priority testdir.tmpdir.ensure(".virtual", bindir, fname) testfile = testdir.tmpdir.ensure(".virtual", "test_invenv.py") testfile.write("def test_hello(): pass") result = testdir.runpytest("--collect-in-virtualenv") assert "test_invenv" not in result.stdout.str() # ...unless the virtualenv is explicitly given on the CLI result = testdir.runpytest("--collect-in-virtualenv", ".virtual") > assert "test_invenv" in result.stdout.str() E AssertionError: assert 'test_invenv' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c6327f910>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c6327f910> = <_pytest.pytester.RunResult object at 0x7f5c631cd550>.stdout ../../../../pytest-3.10.1/testing/test_collection.py:190: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __ TestCollectFS.test_ignored_virtualenvs_norecursedirs_precedence[Activate] ___ self = testdir = fname = 'Activate' @pytest.mark.parametrize( "fname", ( "activate", "activate.csh", "activate.fish", "Activate", "Activate.bat", "Activate.ps1", ), ) def test_ignored_virtualenvs_norecursedirs_precedence(self, testdir, fname): bindir = "Scripts" if sys.platform.startswith("win") else "bin" # norecursedirs takes priority testdir.tmpdir.ensure(".virtual", bindir, fname) testfile = testdir.tmpdir.ensure(".virtual", "test_invenv.py") testfile.write("def test_hello(): pass") result = testdir.runpytest("--collect-in-virtualenv") assert "test_invenv" not in result.stdout.str() # ...unless the virtualenv is explicitly given on the CLI result = testdir.runpytest("--collect-in-virtualenv", ".virtual") > assert "test_invenv" in result.stdout.str() E AssertionError: assert 'test_invenv' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c64261c50>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c64261c50> = <_pytest.pytester.RunResult object at 0x7f5c633c7790>.stdout ../../../../pytest-3.10.1/testing/test_collection.py:190: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestCollectFS.test_ignored_virtualenvs_norecursedirs_precedence[Activate.bat] _ self = testdir = fname = 'Activate.bat' @pytest.mark.parametrize( "fname", ( "activate", "activate.csh", "activate.fish", "Activate", "Activate.bat", "Activate.ps1", ), ) def test_ignored_virtualenvs_norecursedirs_precedence(self, testdir, fname): bindir = "Scripts" if sys.platform.startswith("win") else "bin" # norecursedirs takes priority testdir.tmpdir.ensure(".virtual", bindir, fname) testfile = testdir.tmpdir.ensure(".virtual", "test_invenv.py") testfile.write("def test_hello(): pass") result = testdir.runpytest("--collect-in-virtualenv") assert "test_invenv" not in result.stdout.str() # ...unless the virtualenv is explicitly given on the CLI result = testdir.runpytest("--collect-in-virtualenv", ".virtual") > assert "test_invenv" in result.stdout.str() E AssertionError: assert 'test_invenv' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c631cd7d0>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c631cd7d0> = <_pytest.pytester.RunResult object at 0x7f5c63434110>.stdout ../../../../pytest-3.10.1/testing/test_collection.py:190: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestCollectFS.test_ignored_virtualenvs_norecursedirs_precedence[Activate.ps1] _ self = testdir = fname = 'Activate.ps1' @pytest.mark.parametrize( "fname", ( "activate", "activate.csh", "activate.fish", "Activate", "Activate.bat", "Activate.ps1", ), ) def test_ignored_virtualenvs_norecursedirs_precedence(self, testdir, fname): bindir = "Scripts" if sys.platform.startswith("win") else "bin" # norecursedirs takes priority testdir.tmpdir.ensure(".virtual", bindir, fname) testfile = testdir.tmpdir.ensure(".virtual", "test_invenv.py") testfile.write("def test_hello(): pass") result = testdir.runpytest("--collect-in-virtualenv") assert "test_invenv" not in result.stdout.str() # ...unless the virtualenv is explicitly given on the CLI result = testdir.runpytest("--collect-in-virtualenv", ".virtual") > assert "test_invenv" in result.stdout.str() E AssertionError: assert 'test_invenv' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c62f8c310>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c62f8c310> = <_pytest.pytester.RunResult object at 0x7f5c6330e1d0>.stdout ../../../../pytest-3.10.1/testing/test_collection.py:190: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ TestCollectFS.test_custom_norecursedirs ____________________ self = testdir = def test_custom_norecursedirs(self, testdir): testdir.makeini( """ [pytest] norecursedirs = mydir xyz* """ ) tmpdir = testdir.tmpdir tmpdir.ensure("mydir", "test_hello.py").write("def test_1(): pass") tmpdir.ensure("xyz123", "test_2.py").write("def test_2(): 0/0") tmpdir.ensure("xy", "test_ok.py").write("def test_3(): pass") > rec = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_collection.py:224: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________________ TestCollectFS.test_testpaths_ini _______________________ self = testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c630cd050> def test_testpaths_ini(self, testdir, monkeypatch): testdir.makeini( """ [pytest] testpaths = gui uts """ ) tmpdir = testdir.tmpdir tmpdir.ensure("env", "test_1.py").write("def test_env(): pass") tmpdir.ensure("gui", "test_2.py").write("def test_gui(): pass") tmpdir.ensure("uts", "test_3.py").write("def test_uts(): pass") # executing from rootdir only tests from `testpaths` directories # are collected > items, reprec = testdir.inline_genitems("-v") ../../../../pytest-3.10.1/testing/test_collection.py:243: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________ TestCollectPluginHookRelay.test_pytest_collect_file ______________ self = testdir = def test_pytest_collect_file(self, testdir): wascalled = [] class Plugin(object): def pytest_collect_file(self, path, parent): if not path.basename.startswith("."): # Ignore hidden files, e.g. .testmondata. wascalled.append(path) testdir.makefile(".abc", "xyz") > pytest.main([testdir.tmpdir], plugins=[Plugin()]) ../../../../pytest-3.10.1/testing/test_collection.py:271: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________ TestCollectPluginHookRelay.test_pytest_collect_directory ___________ self = testdir = def test_pytest_collect_directory(self, testdir): wascalled = [] class Plugin(object): def pytest_collect_directory(self, path, parent): wascalled.append(path.basename) testdir.mkdir("hello") testdir.mkdir("world") > pytest.main(testdir.tmpdir, plugins=[Plugin()]) ../../../../pytest-3.10.1/testing/test_collection.py:284: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________ TestPrunetraceback.test_custom_repr_failure __________________ self = testdir = def test_custom_repr_failure(self, testdir): p = testdir.makepyfile( """ import not_exists """ ) testdir.makeconftest( """ import pytest def pytest_collect_file(path, parent): return MyFile(path, parent) class MyError(Exception): pass class MyFile(pytest.File): def collect(self): raise MyError() def repr_failure(self, excinfo): if excinfo.errisinstance(MyError): return "hello world" return pytest.File.repr_failure(self, excinfo) """ ) result = testdir.runpytest(p) > result.stdout.fnmatch_lines(["*ERROR collecting*", "*hello world*"]) E Failed: nomatch: '*ERROR collecting*' E and: '' E remains unmatched: '*ERROR collecting*' ../../../../pytest-3.10.1/testing/test_collection.py:314: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestCustomConftests.test_ignore_collect_path _________________ self = testdir = def test_ignore_collect_path(self, testdir): testdir.makeconftest( """ def pytest_ignore_collect(path, config): return path.basename.startswith("x") or \ path.basename == "test_one.py" """ ) sub = testdir.mkdir("xy123") sub.ensure("test_hello.py").write("syntax error") sub.join("conftest.py").write("syntax error") testdir.makepyfile("def test_hello(): pass") testdir.makepyfile(test_one="syntax error") result = testdir.runpytest("--fulltrace") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63344590>.ret ../../../../pytest-3.10.1/testing/test_collection.py:353: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________ TestCustomConftests.test_ignore_collect_not_called_on_argument ________ self = testdir = def test_ignore_collect_not_called_on_argument(self, testdir): testdir.makeconftest( """ def pytest_ignore_collect(path, config): return True """ ) p = testdir.makepyfile("def test_hello(): pass") result = testdir.runpytest(p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c62f7d390>.ret ../../../../pytest-3.10.1/testing/test_collection.py:365: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________ TestCustomConftests.test_collectignore_exclude_on_option ___________ self = testdir = def test_collectignore_exclude_on_option(self, testdir): testdir.makeconftest( """ collect_ignore = ['hello', 'test_world.py'] def pytest_addoption(parser): parser.addoption("--XX", action="store_true", default=False) def pytest_configure(config): if config.getvalue("XX"): collect_ignore[:] = [] """ ) testdir.mkdir("hello") testdir.makepyfile(test_world="def test_hello(): pass") result = testdir.runpytest() > assert result.ret == EXIT_NOTESTSCOLLECTED E assert 3 == 5 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c64a7ce50>.ret ../../../../pytest-3.10.1/testing/test_collection.py:385: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________ TestCustomConftests.test_pytest_fs_collect_hooks_are_seen ___________ self = testdir = def test_pytest_fs_collect_hooks_are_seen(self, testdir): testdir.makeconftest( """ import pytest class MyModule(pytest.Module): pass def pytest_collect_file(path, parent): if path.ext == ".py": return MyModule(path, parent) """ ) testdir.mkdir("sub") testdir.makepyfile("def test_x(): pass") result = testdir.runpytest("--collect-only") > result.stdout.fnmatch_lines(["*MyModule*", "*test_x*"]) E Failed: nomatch: '*MyModule*' E and: '' E remains unmatched: '*MyModule*' ../../../../pytest-3.10.1/testing/test_collection.py:405: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________ TestCustomConftests.test_pytest_collect_file_from_sister_dir _________ self = testdir = def test_pytest_collect_file_from_sister_dir(self, testdir): sub1 = testdir.mkpydir("sub1") sub2 = testdir.mkpydir("sub2") conf1 = testdir.makeconftest( """ import pytest class MyModule1(pytest.Module): pass def pytest_collect_file(path, parent): if path.ext == ".py": return MyModule1(path, parent) """ ) conf1.move(sub1.join(conf1.basename)) conf2 = testdir.makeconftest( """ import pytest class MyModule2(pytest.Module): pass def pytest_collect_file(path, parent): if path.ext == ".py": return MyModule2(path, parent) """ ) conf2.move(sub2.join(conf2.basename)) p = testdir.makepyfile("def test_x(): pass") p.copy(sub1.join(p.basename)) p.copy(sub2.join(p.basename)) result = testdir.runpytest("--collect-only") > result.stdout.fnmatch_lines(["*MyModule1*", "*MyModule2*", "*test_x*"]) E Failed: nomatch: '*MyModule1*' E and: '' E remains unmatched: '*MyModule1*' ../../../../pytest-3.10.1/testing/test_collection.py:436: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________ TestSession.test_parsearg ___________________________ self = testdir = def test_parsearg(self, testdir): p = testdir.makepyfile("def test_func(): pass") subdir = testdir.mkdir("sub") subdir.ensure("__init__.py") target = subdir.join(p.basename) p.move(target) subdir.chdir() > config = testdir.parseconfig(p.basename) ../../../../../pytest-3.10.1/testing/test_collection.py:447: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________________ TestSession.test_collect_topdir ________________________ self = testdir = def test_collect_topdir(self, testdir): p = testdir.makepyfile("def test_func(): pass") id = "::".join([p.basename, "test_func"]) # XXX migrate to collectonly? (see below) > config = testdir.parseconfig(id) ../../../../pytest-3.10.1/testing/test_collection.py:463: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestSession.test_collect_protocol_single_function _______________ self = testdir = def test_collect_protocol_single_function(self, testdir): p = testdir.makepyfile("def test_func(): pass") id = "::".join([p.basename, "test_func"]) > items, hookrec = testdir.inline_genitems(id) ../../../../pytest-3.10.1/testing/test_collection.py:487: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestSession.test_collect_protocol_method ___________________ self = testdir = def test_collect_protocol_method(self, testdir): p = testdir.makepyfile( """ class TestClass(object): def test_method(self): pass """ ) normid = p.basename + "::TestClass::()::test_method" for id in [ p.basename, p.basename + "::TestClass", p.basename + "::TestClass::()", normid, ]: > items, hookrec = testdir.inline_genitems(id) ../../../../pytest-3.10.1/testing/test_collection.py:522: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ TestSession.test_collect_custom_nodes_multi_id ________________ self = testdir = def test_collect_custom_nodes_multi_id(self, testdir): p = testdir.makepyfile("def test_func(): pass") testdir.makeconftest( """ import pytest class SpecialItem(pytest.Item): def runtest(self): return # ok class SpecialFile(pytest.File): def collect(self): return [SpecialItem(name="check", parent=self)] def pytest_collect_file(path, parent): if path.basename == %r: return SpecialFile(fspath=path, parent=parent) """ % p.basename ) id = p.basename > items, hookrec = testdir.inline_genitems(id) ../../../../pytest-3.10.1/testing/test_collection.py:549: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ TestSession.test_collect_subdir_event_ordering ________________ self = testdir = def test_collect_subdir_event_ordering(self, testdir): p = testdir.makepyfile("def test_func(): pass") aaa = testdir.mkpydir("aaa") test_aaa = aaa.join("test_aaa.py") p.move(test_aaa) > items, hookrec = testdir.inline_genitems() ../../../../pytest-3.10.1/testing/test_collection.py:572: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ TestSession.test_collect_two_commandline_args _________________ self = testdir = def test_collect_two_commandline_args(self, testdir): p = testdir.makepyfile("def test_func(): pass") aaa = testdir.mkpydir("aaa") bbb = testdir.mkpydir("bbb") test_aaa = aaa.join("test_aaa.py") p.copy(test_aaa) test_bbb = bbb.join("test_bbb.py") p.move(test_bbb) id = "." > items, hookrec = testdir.inline_genitems(id) ../../../../pytest-3.10.1/testing/test_collection.py:594: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestSession.test_serialization_byid ______________________ self = testdir = def test_serialization_byid(self, testdir): testdir.makepyfile("def test_func(): pass") > items, hookrec = testdir.inline_genitems() ../../../../pytest-3.10.1/testing/test_collection.py:610: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________ TestSession.test_find_byid_without_instance_parents ______________ self = testdir = def test_find_byid_without_instance_parents(self, testdir): p = testdir.makepyfile( """ class TestClass(object): def test_method(self): pass """ ) arg = p.basename + "::TestClass::test_method" > items, hookrec = testdir.inline_genitems(arg) ../../../../pytest-3.10.1/testing/test_collection.py:627: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ Test_getinitialnodes.test_global_file _____________________ self = testdir = tmpdir = local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_global_file1') def test_global_file(self, testdir, tmpdir): x = tmpdir.ensure("x.py") with tmpdir.as_cwd(): > config = testdir.parseconfigure(x) ../../../../pytest-3.10.1/testing/test_collection.py:639: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________ Test_getinitialnodes.test_pkgfile _______________________ self = testdir = def test_pkgfile(self, testdir): """Verify nesting when a module is within a package. The parent chain should match: Module -> Package -> Session. Session's parent should always be None. """ tmpdir = testdir.tmpdir subdir = tmpdir.join("subdir") x = subdir.ensure("x.py") subdir.ensure("__init__.py") with subdir.as_cwd(): > config = testdir.parseconfigure(x) ../../../../pytest-3.10.1/testing/test_collection.py:657: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ Test_genitems.test_check_collect_hashes ____________________ self = testdir = def test_check_collect_hashes(self, testdir): p = testdir.makepyfile( """ def test_1(): pass def test_2(): pass """ ) p.copy(p.dirpath(p.purebasename + "2" + ".py")) > items, reprec = testdir.inline_genitems(p.dirpath()) ../../../../pytest-3.10.1/testing/test_collection.py:681: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________ Test_genitems.test_example_items1 _______________________ self = testdir = def test_example_items1(self, testdir): p = testdir.makepyfile( """ def testone(): pass class TestX(object): def testmethod_one(self): pass class TestY(TestX): pass """ ) > items, reprec = testdir.inline_genitems(p) ../../../../pytest-3.10.1/testing/test_collection.py:703: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________ Test_genitems.test_class_and_functions_discovery_using_glob __________ self = testdir = def test_class_and_functions_discovery_using_glob(self, testdir): """ tests that python_classes and python_functions config options work as prefixes and glob-like patterns (issue #600). """ testdir.makeini( """ [pytest] python_classes = *Suite Test python_functions = *_test test """ ) p = testdir.makepyfile( """ class MyTestSuite(object): def x_test(self): pass class TestCase(object): def test_y(self): pass """ ) > items, reprec = testdir.inline_genitems(p) ../../../../pytest-3.10.1/testing/test_collection.py:741: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ test_matchnodes_two_collections_same_file ___________________ testdir = def test_matchnodes_two_collections_same_file(testdir): testdir.makeconftest( """ import pytest def pytest_configure(config): config.pluginmanager.register(Plugin2()) class Plugin2(object): def pytest_collect_file(self, path, parent): if path.ext == ".abc": return MyFile2(path, parent) def pytest_collect_file(path, parent): if path.ext == ".abc": return MyFile1(path, parent) class MyFile1(pytest.Item, pytest.File): def runtest(self): pass class MyFile2(pytest.File): def collect(self): return [Item2("hello", parent=self)] class Item2(pytest.Item): def runtest(self): pass """ ) p = testdir.makefile(".abc", "") result = testdir.runpytest() > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c62fc6b10>.ret ../../../../pytest-3.10.1/testing/test_collection.py:776: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ TestNodekeywords.test_no_under ________________________ self = testdir = def test_no_under(self, testdir): modcol = testdir.getmodulecol( """ def test_pass(): pass def test_fail(): assert 0 > """ ) ../../../../pytest-3.10.1/testing/test_collection.py:788: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________________ TestNodekeywords.test_issue345 ________________________ self = testdir = def test_issue345(self, testdir): testdir.makepyfile( """ def test_should_not_be_selected(): assert False, 'I should not have been selected to run' def test___repr__(): pass """ ) > reprec = testdir.inline_run("-k repr") ../../../../pytest-3.10.1/testing/test_collection.py:806: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________________ test_exit_on_collection_error _________________________ testdir = def test_exit_on_collection_error(testdir): """Verify that all collection errors are collected and no tests executed""" testdir.makepyfile(**COLLECTION_ERROR_PY_FILES) res = testdir.runpytest() > assert res.ret == 2 E assert 3 == 2 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63386150>.ret ../../../../pytest-3.10.1/testing/test_collection.py:837: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________ test_exit_on_collection_with_maxfail_smaller_than_n_errors __________ testdir = def test_exit_on_collection_with_maxfail_smaller_than_n_errors(testdir): """ Verify collection is aborted once maxfail errors are encountered ignoring further modules which would cause more collection errors. """ testdir.makepyfile(**COLLECTION_ERROR_PY_FILES) res = testdir.runpytest("--maxfail=1") > assert res.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c62f7ded0>.ret ../../../../pytest-3.10.1/testing/test_collection.py:858: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________ test_exit_on_collection_with_maxfail_bigger_than_n_errors ___________ testdir = def test_exit_on_collection_with_maxfail_bigger_than_n_errors(testdir): """ Verify the test run aborts due to collection errors even if maxfail count of errors was not reached. """ testdir.makepyfile(**COLLECTION_ERROR_PY_FILES) res = testdir.runpytest("--maxfail=4") > assert res.ret == 2 E assert 3 == 2 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c634a2350>.ret ../../../../pytest-3.10.1/testing/test_collection.py:875: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ test_continue_on_collection_errors ______________________ testdir = def test_continue_on_collection_errors(testdir): """ Verify tests are executed even when collection errors occur when the --continue-on-collection-errors flag is set """ testdir.makepyfile(**COLLECTION_ERROR_PY_FILES) res = testdir.runpytest("--continue-on-collection-errors") > assert res.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c62e9a150>.ret ../../../../pytest-3.10.1/testing/test_collection.py:896: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ test_continue_on_collection_errors_maxfail __________________ testdir = def test_continue_on_collection_errors_maxfail(testdir): """ Verify tests are executed even when collection errors occur and that maxfail is honoured (including the collection error count). 4 tests: 2 collection errors + 1 failure + 1 success test_4 is never executed because the test run is with --maxfail=3 which means it is interrupted after the 2 collection errors + 1 failure. """ testdir.makepyfile(**COLLECTION_ERROR_PY_FILES) res = testdir.runpytest("--continue-on-collection-errors", "--maxfail=3") > assert res.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c6330efd0>.ret ../../../../pytest-3.10.1/testing/test_collection.py:914: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ test_fixture_scope_sibling_conftests _____________________ testdir = def test_fixture_scope_sibling_conftests(testdir): """Regression test case for https://github.com/pytest-dev/pytest/issues/2836""" foo_path = testdir.mkdir("foo") foo_path.join("conftest.py").write( textwrap.dedent( """\ import pytest @pytest.fixture def fix(): return 1 """ ) ) foo_path.join("test_foo.py").write("def test_foo(fix): assert fix == 1") # Tests in `food/` should not see the conftest fixture from `foo/` food_path = testdir.mkpydir("food") food_path.join("test_food.py").write("def test_food(fix): assert fix == 1") res = testdir.runpytest() > assert res.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63144710>.ret ../../../../pytest-3.10.1/testing/test_collection.py:939: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ test_collect_init_tests ____________________________ testdir = def test_collect_init_tests(testdir): """Check that we collect files from __init__.py files when they patch the 'python_files' (#3773)""" p = testdir.copy_example("collect/collect_init_tests") result = testdir.runpytest(p, "--collect-only") result.stdout.fnmatch_lines( [ "collected 2 items", "", " ", " ", > " ", ] ) E Failed: nomatch: 'collected 2 items' E and: '' E remains unmatched: 'collected 2 items' ../../../../pytest-3.10.1/testing/test_collection.py:961: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ test_collect_invalid_signature_message ____________________ testdir = def test_collect_invalid_signature_message(testdir): """Check that we issue a proper message when we can't determine the signature of a test function (#4026). """ testdir.makepyfile( """ import pytest class TestCase: @pytest.fixture def fix(): pass """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( > ["Could not determine arguments of *.fix *: invalid method signature"] ) E Failed: nomatch: 'Could not determine arguments of *.fix *: invalid method signature' E and: '' E remains unmatched: 'Could not determine arguments of *.fix *: invalid method signature' ../../../../pytest-3.10.1/testing/test_collection.py:1027: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ test_collect_handles_raising_on_dunder_class _________________ testdir = def test_collect_handles_raising_on_dunder_class(testdir): """Handle proxy classes like Django's LazySettings that might raise on ``isinstance`` (#4266). """ testdir.makepyfile( """ class ImproperlyConfigured(Exception): pass class RaisesOnGetAttr(object): def raises(self): raise ImproperlyConfigured __class__ = property(raises) raises = RaisesOnGetAttr() def test_1(): pass """ ) result = testdir.runpytest() > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63066dd0>.ret ../../../../pytest-3.10.1/testing/test_collection.py:1054: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ test_collect_symlink_file_arg _________________________ testdir = @pytest.mark.skipif( not hasattr(py.path.local, "mksymlinkto"), reason="symlink not available on this platform", ) def test_collect_symlink_file_arg(testdir): """Test that collecting a direct symlink, where the target does not match python_files works (#4325).""" real = testdir.makepyfile( real=""" def test_nodeid(request): assert request.node.nodeid == "real.py::test_nodeid" """ ) symlink = testdir.tmpdir.join("symlink.py") symlink.mksymlinkto(real) result = testdir.runpytest("-v", symlink) > result.stdout.fnmatch_lines(["real.py::test_nodeid PASSED*", "*1 passed in*"]) E Failed: nomatch: 'real.py::test_nodeid PASSED*' E and: '' E remains unmatched: 'real.py::test_nodeid PASSED*' ../../../../pytest-3.10.1/testing/test_collection.py:1073: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ test_collect_symlink_out_of_tree _______________________ testdir = @pytest.mark.skipif( not hasattr(py.path.local, "mksymlinkto"), reason="symlink not available on this platform", ) def test_collect_symlink_out_of_tree(testdir): """Test collection of symlink via out-of-tree rootdir.""" sub = testdir.tmpdir.join("sub") real = sub.join("test_real.py") real.write( textwrap.dedent( """ def test_nodeid(request): # Should not contain sub/ prefix. assert request.node.nodeid == "test_real.py::test_nodeid" """ ), ensure=True, ) out_of_tree = testdir.tmpdir.join("out_of_tree").ensure(dir=True) symlink_to_sub = out_of_tree.join("symlink_to_sub") symlink_to_sub.mksymlinkto(sub) sub.chdir() result = testdir.runpytest("-vs", "--rootdir=%s" % sub, symlink_to_sub) result.stdout.fnmatch_lines( [ # Should not contain "sub/"! > "test_real.py::test_nodeid PASSED" ] ) E Failed: nomatch: 'test_real.py::test_nodeid PASSED' E and: '' E remains unmatched: 'test_real.py::test_nodeid PASSED' ../../../../../pytest-3.10.1/testing/test_collection.py:1104: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ test_is_generator_async_syntax ________________________ testdir = @pytest.mark.skipif( sys.version_info < (3, 5), reason="async syntax available in Python 3.5+" ) def test_is_generator_async_syntax(testdir): testdir.makepyfile( """ from _pytest.compat import is_generator def test_is_generator_py35(): async def foo(): await foo() async def bar(): pass assert not is_generator(foo) assert not is_generator(bar) """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/test_compat.py:119: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________ TestParseIni.test_getcfg_and_config[pytest-pytest.ini] ____________ self = testdir = tmpdir = local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_getcfg_and_config_pytest_0') section = 'pytest', filename = 'pytest.ini' @pytest.mark.parametrize( "section, filename", [("pytest", "pytest.ini"), ("tool:pytest", "setup.cfg")] ) def test_getcfg_and_config(self, testdir, tmpdir, section, filename): sub = tmpdir.mkdir("sub") sub.chdir() tmpdir.join(filename).write( textwrap.dedent( """\ [{section}] name = value """.format( section=section ) ) ) rootdir, inifile, cfg = getcfg([sub]) assert cfg["name"] == "value" > config = testdir.parseconfigure(sub) ../../../../../pytest-3.10.1/testing/test_config.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________ TestParseIni.test_getcfg_and_config[tool:pytest-setup.cfg] __________ self = testdir = tmpdir = local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_getcfg_and_config_tool_py0') section = 'tool:pytest', filename = 'setup.cfg' @pytest.mark.parametrize( "section, filename", [("pytest", "pytest.ini"), ("tool:pytest", "setup.cfg")] ) def test_getcfg_and_config(self, testdir, tmpdir, section, filename): sub = tmpdir.mkdir("sub") sub.chdir() tmpdir.join(filename).write( textwrap.dedent( """\ [{section}] name = value """.format( section=section ) ) ) rootdir, inifile, cfg = getcfg([sub]) assert cfg["name"] == "value" > config = testdir.parseconfigure(sub) ../../../../../pytest-3.10.1/testing/test_config.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestParseIni.test_append_parse_args ______________________ self = testdir = tmpdir = local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_append_parse_args1') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c63174150> def test_append_parse_args(self, testdir, tmpdir, monkeypatch): monkeypatch.setenv("PYTEST_ADDOPTS", '--color no -rs --tb="short"') tmpdir.join("pytest.ini").write( textwrap.dedent( """\ [pytest] addopts = --verbose """ ) ) > config = testdir.parseconfig(tmpdir) ../../../../pytest-3.10.1/testing/test_config.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestParseIni.test_ini_names[tool:pytest-setup.cfg] ______________ self = testdir = name = 'setup.cfg', section = 'tool:pytest' @pytest.mark.parametrize( "section, name", [("tool:pytest", "setup.cfg"), ("pytest", "tox.ini"), ("pytest", "pytest.ini")], ) def test_ini_names(self, testdir, name, section): testdir.tmpdir.join(name).write( textwrap.dedent( """ [{section}] minversion = 1.0 """.format( section=section ) ) ) > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_config.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________ TestParseIni.test_ini_names[pytest-tox.ini] __________________ self = testdir = name = 'tox.ini', section = 'pytest' @pytest.mark.parametrize( "section, name", [("tool:pytest", "setup.cfg"), ("pytest", "tox.ini"), ("pytest", "pytest.ini")], ) def test_ini_names(self, testdir, name, section): testdir.tmpdir.join(name).write( textwrap.dedent( """ [{section}] minversion = 1.0 """.format( section=section ) ) ) > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_config.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ TestParseIni.test_ini_names[pytest-pytest.ini] ________________ self = testdir = name = 'pytest.ini', section = 'pytest' @pytest.mark.parametrize( "section, name", [("tool:pytest", "setup.cfg"), ("pytest", "tox.ini"), ("pytest", "pytest.ini")], ) def test_ini_names(self, testdir, name, section): testdir.tmpdir.join(name).write( textwrap.dedent( """ [{section}] minversion = 1.0 """.format( section=section ) ) ) > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_config.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________ TestParseIni.test_toxini_before_lower_pytestini ________________ self = testdir = def test_toxini_before_lower_pytestini(self, testdir): sub = testdir.tmpdir.mkdir("sub") sub.join("tox.ini").write( textwrap.dedent( """ [pytest] minversion = 2.0 """ ) ) testdir.tmpdir.join("pytest.ini").write( textwrap.dedent( """ [pytest] minversion = 1.5 """ ) ) > config = testdir.parseconfigure(sub) ../../../../pytest-3.10.1/testing/test_config.py:107: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestConfigCmdlineParsing.test_parsing_again_fails _______________ self = testdir = def test_parsing_again_fails(self, testdir): > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_config.py:126: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___ TestConfigCmdlineParsing.test_explicitly_specified_config_file_is_loaded ___ self = testdir = def test_explicitly_specified_config_file_is_loaded(self, testdir): testdir.makeconftest( """ def pytest_addoption(parser): parser.addini("custom", "") """ ) testdir.makeini( """ [pytest] custom = 0 """ ) testdir.makefile( ".ini", custom=""" [pytest] custom = 1 """, ) > config = testdir.parseconfig("-c", "custom.ini") ../../../../pytest-3.10.1/testing/test_config.py:149: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestConfigCmdlineParsing.test_absolute_win32_path _______________ self = testdir = def test_absolute_win32_path(self, testdir): temp_ini_file = testdir.makefile( ".ini", custom=""" [pytest] addopts = --version """, ) from os.path import normpath temp_ini_file = normpath(str(temp_ini_file)) > ret = pytest.main(["-c", temp_ini_file]) ../../../../pytest-3.10.1/testing/test_config.py:173: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________________ TestConfigAPI.test_config_trace ________________________ self = testdir = def test_config_trace(self, testdir): > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_config.py:179: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestConfigAPI.test_config_getoption ______________________ self = testdir = def test_config_getoption(self, testdir): testdir.makeconftest( """ def pytest_addoption(parser): parser.addoption("--hello", "-X", dest="hello") """ ) > config = testdir.parseconfig("--hello=this") ../../../../pytest-3.10.1/testing/test_config.py:193: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________ TestConfigAPI.test_config_getoption_unicode __________________ self = testdir = @pytest.mark.skipif("sys.version_info[0] < 3") def test_config_getoption_unicode(self, testdir): testdir.makeconftest( """ from __future__ import unicode_literals def pytest_addoption(parser): parser.addoption('--hello', type=str) """ ) > config = testdir.parseconfig("--hello=this") ../../../../pytest-3.10.1/testing/test_config.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestConfigAPI.test_config_getvalueorskip ___________________ self = testdir = def test_config_getvalueorskip(self, testdir): > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_config.py:212: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ TestConfigAPI.test_config_getvalueorskip_None _________________ self = testdir = def test_config_getvalueorskip_None(self, testdir): testdir.makeconftest( """ def pytest_addoption(parser): parser.addoption("--hello") """ ) > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_config.py:224: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________________ TestConfigAPI.test_getoption _________________________ self = testdir = def test_getoption(self, testdir): > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_config.py:229: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestConfigAPI.test_getconftest_pathlist ____________________ self = testdir = tmpdir = local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_getconftest_pathlist1') def test_getconftest_pathlist(self, testdir, tmpdir): somepath = tmpdir.join("x", "y", "z") p = tmpdir.join("conftest.py") p.write("pathlist = ['.', %r]" % str(somepath)) > config = testdir.parseconfigure(p) ../../../../pytest-3.10.1/testing/test_config.py:238: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________________ TestConfigAPI.test_addini ___________________________ self = testdir = def test_addini(self, testdir): testdir.makeconftest( """ def pytest_addoption(parser): parser.addini("myname", "my new ini value") """ ) testdir.makeini( """ [pytest] myname=hello """ ) > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_config.py:259: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________ TestConfigAPI.test_addini_pathlist ______________________ self = testdir = def test_addini_pathlist(self, testdir): testdir.makeconftest( """ def pytest_addoption(parser): parser.addini("paths", "my new ini value", type="pathlist") parser.addini("abc", "abc value") """ ) p = testdir.makeini( """ [pytest] paths=hello world/sub.py """ ) > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_config.py:278: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________________ TestConfigAPI.test_addini_args ________________________ self = testdir = def test_addini_args(self, testdir): testdir.makeconftest( """ def pytest_addoption(parser): parser.addini("args", "new args", type="args") parser.addini("a2", "", "args", default="1 2 3".split()) """ ) testdir.makeini( """ [pytest] args=123 "123 hello" "this" """ ) > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_config.py:299: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________ TestConfigAPI.test_addini_linelist ______________________ self = testdir = def test_addini_linelist(self, testdir): testdir.makeconftest( """ def pytest_addoption(parser): parser.addini("xy", "", type="linelist") parser.addini("a2", "", "linelist") """ ) testdir.makeini( """ [pytest] xy= 123 345 second line """ ) > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_config.py:321: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ TestConfigAPI.test_addini_bool[True-True] ___________________ self = testdir = str_val = 'True', bool_val = True @pytest.mark.parametrize( "str_val, bool_val", [("True", True), ("no", False), ("no-ini", True)] ) def test_addini_bool(self, testdir, str_val, bool_val): testdir.makeconftest( """ def pytest_addoption(parser): parser.addini("strip", "", type="bool", default=True) """ ) if str_val != "no-ini": testdir.makeini( """ [pytest] strip=%s """ % str_val ) > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_config.py:346: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestConfigAPI.test_addini_bool[no-False] ___________________ self = testdir = str_val = 'no', bool_val = False @pytest.mark.parametrize( "str_val, bool_val", [("True", True), ("no", False), ("no-ini", True)] ) def test_addini_bool(self, testdir, str_val, bool_val): testdir.makeconftest( """ def pytest_addoption(parser): parser.addini("strip", "", type="bool", default=True) """ ) if str_val != "no-ini": testdir.makeini( """ [pytest] strip=%s """ % str_val ) > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_config.py:346: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________ TestConfigAPI.test_addini_bool[no-ini-True] __________________ self = testdir = str_val = 'no-ini', bool_val = True @pytest.mark.parametrize( "str_val, bool_val", [("True", True), ("no", False), ("no-ini", True)] ) def test_addini_bool(self, testdir, str_val, bool_val): testdir.makeconftest( """ def pytest_addoption(parser): parser.addini("strip", "", type="bool", default=True) """ ) if str_val != "no-ini": testdir.makeini( """ [pytest] strip=%s """ % str_val ) > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_config.py:346: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________ TestConfigAPI.test_addinivalue_line_existing _________________ self = testdir = def test_addinivalue_line_existing(self, testdir): testdir.makeconftest( """ def pytest_addoption(parser): parser.addini("xy", "", type="linelist") """ ) testdir.makeini( """ [pytest] xy= 123 """ ) > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_config.py:362: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestConfigAPI.test_addinivalue_line_new ____________________ self = testdir = def test_addinivalue_line_new(self, testdir): testdir.makeconftest( """ def pytest_addoption(parser): parser.addini("xy", "", type="linelist") """ ) > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_config.py:378: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ TestConfigAPI.test_confcutdir_check_isdir ___________________ self = testdir = def test_confcutdir_check_isdir(self, testdir): """Give an error if --confcutdir is not a valid directory (#2078)""" with pytest.raises(pytest.UsageError): testdir.parseconfig( "--confcutdir", testdir.tmpdir.join("file").ensure(file=1) ) with pytest.raises(pytest.UsageError): testdir.parseconfig("--confcutdir", testdir.tmpdir.join("inexistant")) config = testdir.parseconfig( > "--confcutdir", testdir.tmpdir.join("dir").ensure(dir=1) ) ../../../../pytest-3.10.1/testing/test_config.py:398: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ TestConfigFromdictargs.test_basic_behavior __________________ self = def test_basic_behavior(self): from _pytest.config import Config option_dict = {"verbose": 444, "foo": "bar", "capture": "no"} args = ["a", "b"] > config = Config.fromdictargs(option_dict, args) testing/test_config.py:423: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/_pytest/config/__init__.py:704: in fromdictargs config.parse(args, addopts=False) src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestConfigFromdictargs.test_origargs _____________________ self = def test_origargs(self): """Show that fromdictargs can handle args in their "orig" format""" from _pytest.config import Config option_dict = {} args = ["-vvvv", "-s", "a", "b"] > config = Config.fromdictargs(option_dict, args) testing/test_config.py:438: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/_pytest/config/__init__.py:704: in fromdictargs config.parse(args, addopts=False) src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestConfigFromdictargs.test_inifilename ____________________ self = tmpdir = local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_inifilename0') def test_inifilename(self, tmpdir): tmpdir.join("foo/bar.ini").ensure().write( textwrap.dedent( """\ [pytest] name = value """ ) ) from _pytest.config import Config inifile = "../../foo/bar.ini" option_dict = {"inifilename": inifile, "capture": "no"} cwd = tmpdir.join("a/b") cwd.join("pytest.ini").ensure().write( textwrap.dedent( """\ [pytest] name = wrong-value should_not_be_set = true """ ) ) with cwd.ensure(dir=True).as_cwd(): > config = Config.fromdictargs(option_dict, ()) testing/test_config.py:470: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/_pytest/config/__init__.py:704: in fromdictargs config.parse(args, addopts=False) src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ test_options_on_small_file_do_not_blow_up ___________________ testdir = def test_options_on_small_file_do_not_blow_up(testdir): def runfiletest(opts): reprec = testdir.inline_run(*opts) passed, skipped, failed = reprec.countoutcomes() assert failed == 2 assert skipped == passed == 0 path = testdir.makepyfile( """ def test_f1(): assert 0 def test_f2(): assert 0 """ ) for opts in ( [], ["-l"], ["-s"], ["--tb=no"], ["--tb=short"], ["--tb=long"], ["--fulltrace"], ["--traceconfig"], ["-v"], ["-v", "-v"], ): > runfiletest(opts + [path]) ../../../../pytest-3.10.1/testing/test_config.py:508: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_config.py:484: in runfiletest reprec = testdir.inline_run(*opts) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________________ test_cmdline_processargs_simple ________________________ testdir = def test_cmdline_processargs_simple(testdir): testdir.makeconftest( """ def pytest_cmdline_preparse(args): args.append("-h") """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*pytest*", "*-h*"]) E Failed: nomatch: '*pytest*' E and: '' E remains unmatched: '*pytest*' ../../../../pytest-3.10.1/testing/test_config.py:641: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ test_invalid_options_show_extra_information __________________ testdir = def test_invalid_options_show_extra_information(testdir): """display extra information when pytest exits due to unrecognized options in the command-line""" testdir.makeini( """ [pytest] addopts = --invalid-option """ ) result = testdir.runpytest() result.stderr.fnmatch_lines( [ "*error: unrecognized arguments: --invalid-option*", "* inifile: %s*" % testdir.tmpdir.join("tox.ini"), > "* rootdir: %s*" % testdir.tmpdir, ] ) E Failed: nomatch: '*error: unrecognized arguments: --invalid-option*' E and: 'Traceback (most recent call last):' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess' E and: ' reprec = self.inline_run(*args, **kwargs)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run' E and: ' ret = pytest.main(list(args), plugins=plugins)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main' E and: ' config = _prepareconfig(args, plugins)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig' E and: ' pluginmanager=pluginmanager, args=args' E and: ' File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__' E and: ' return self._hookexec(self, self.get_hookimpls(), kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall' E and: ' gen.send(outcome)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse' E and: ' config = outcome.get_result()' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall' E and: ' res = hook_impl.function(*args)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse' E and: ' self.parse(args)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse' E and: ' self._preparse(args, addopts=addopts)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse' E and: ' self.pluginmanager.load_setuptools_entrypoints("pytest11")' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints' E and: ' self.register(plugin, name=ep.name)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register' E and: ' ret = super(PytestPluginManager, self).register(plugin, name)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register' E and: ' hook._maybe_apply_history(hookimpl)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history' E and: ' res = self._hookexec(self, [method], kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall' E and: ' return outcome.get_result()' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall' E and: ' res = hook_impl.function(*args)' E and: ' File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption' E and: " help='Depreacted, use --timeout-method')" E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption' E and: ' option = Argument(*optnames, **attrs)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__' E and: ' stacklevel=4,' E and: "DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',))" E and: '' E remains unmatched: '*error: unrecognized arguments: --invalid-option*' ../../../../pytest-3.10.1/testing/test_config.py:658: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______ test_consider_args_after_options_for_rootdir_and_inifile[args0] ________ testdir = args = [local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_consider_args_after_options_for_rootdir_and_inifile0/m...cNz/BUILD/tmp/pytest-of-builder/pytest-1/test_consider_args_after_options_for_rootdir_and_inifile0/myroot/dir2'), '-v'] @pytest.mark.parametrize( "args", [ ["dir1", "dir2", "-v"], ["dir1", "-v", "dir2"], ["dir2", "-v", "dir1"], ["-v", "dir2", "dir1"], ], ) def test_consider_args_after_options_for_rootdir_and_inifile(testdir, args): """ Consider all arguments in the command-line for rootdir and inifile discovery, even if they happen to occur after an option. #949 """ # replace "dir1" and "dir2" from "args" into their real directory root = testdir.tmpdir.mkdir("myroot") d1 = root.mkdir("dir1") d2 = root.mkdir("dir2") for i, arg in enumerate(args): if arg == "dir1": args[i] = d1 elif arg == "dir2": args[i] = d2 with root.as_cwd(): result = testdir.runpytest(*args) > result.stdout.fnmatch_lines(["*rootdir: *myroot, inifile:"]) E Failed: nomatch: '*rootdir: *myroot, inifile:' E and: '' E remains unmatched: '*rootdir: *myroot, inifile:' ../../../../pytest-3.10.1/testing/test_config.py:688: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______ test_consider_args_after_options_for_rootdir_and_inifile[args1] ________ testdir = args = [local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_consider_args_after_options_for_rootdir_and_inifile1/m.../B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_consider_args_after_options_for_rootdir_and_inifile1/myroot/dir2')] @pytest.mark.parametrize( "args", [ ["dir1", "dir2", "-v"], ["dir1", "-v", "dir2"], ["dir2", "-v", "dir1"], ["-v", "dir2", "dir1"], ], ) def test_consider_args_after_options_for_rootdir_and_inifile(testdir, args): """ Consider all arguments in the command-line for rootdir and inifile discovery, even if they happen to occur after an option. #949 """ # replace "dir1" and "dir2" from "args" into their real directory root = testdir.tmpdir.mkdir("myroot") d1 = root.mkdir("dir1") d2 = root.mkdir("dir2") for i, arg in enumerate(args): if arg == "dir1": args[i] = d1 elif arg == "dir2": args[i] = d2 with root.as_cwd(): result = testdir.runpytest(*args) > result.stdout.fnmatch_lines(["*rootdir: *myroot, inifile:"]) E Failed: nomatch: '*rootdir: *myroot, inifile:' E and: '' E remains unmatched: '*rootdir: *myroot, inifile:' ../../../../pytest-3.10.1/testing/test_config.py:688: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______ test_consider_args_after_options_for_rootdir_and_inifile[args2] ________ testdir = args = [local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_consider_args_after_options_for_rootdir_and_inifile2/m.../B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_consider_args_after_options_for_rootdir_and_inifile2/myroot/dir1')] @pytest.mark.parametrize( "args", [ ["dir1", "dir2", "-v"], ["dir1", "-v", "dir2"], ["dir2", "-v", "dir1"], ["-v", "dir2", "dir1"], ], ) def test_consider_args_after_options_for_rootdir_and_inifile(testdir, args): """ Consider all arguments in the command-line for rootdir and inifile discovery, even if they happen to occur after an option. #949 """ # replace "dir1" and "dir2" from "args" into their real directory root = testdir.tmpdir.mkdir("myroot") d1 = root.mkdir("dir1") d2 = root.mkdir("dir2") for i, arg in enumerate(args): if arg == "dir1": args[i] = d1 elif arg == "dir2": args[i] = d2 with root.as_cwd(): result = testdir.runpytest(*args) > result.stdout.fnmatch_lines(["*rootdir: *myroot, inifile:"]) E Failed: nomatch: '*rootdir: *myroot, inifile:' E and: '' E remains unmatched: '*rootdir: *myroot, inifile:' ../../../../pytest-3.10.1/testing/test_config.py:688: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______ test_consider_args_after_options_for_rootdir_and_inifile[args3] ________ testdir = args = ['-v', local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_consider_args_after_options_for_rootdir_and_inif.../B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_consider_args_after_options_for_rootdir_and_inifile3/myroot/dir1')] @pytest.mark.parametrize( "args", [ ["dir1", "dir2", "-v"], ["dir1", "-v", "dir2"], ["dir2", "-v", "dir1"], ["-v", "dir2", "dir1"], ], ) def test_consider_args_after_options_for_rootdir_and_inifile(testdir, args): """ Consider all arguments in the command-line for rootdir and inifile discovery, even if they happen to occur after an option. #949 """ # replace "dir1" and "dir2" from "args" into their real directory root = testdir.tmpdir.mkdir("myroot") d1 = root.mkdir("dir1") d2 = root.mkdir("dir2") for i, arg in enumerate(args): if arg == "dir1": args[i] = d1 elif arg == "dir2": args[i] = d2 with root.as_cwd(): result = testdir.runpytest(*args) > result.stdout.fnmatch_lines(["*rootdir: *myroot, inifile:"]) E Failed: nomatch: '*rootdir: *myroot, inifile:' E and: '' E remains unmatched: '*rootdir: *myroot, inifile:' ../../../../pytest-3.10.1/testing/test_config.py:688: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________ test_toolongargs_issue224 ___________________________ testdir = @pytest.mark.skipif("sys.platform == 'win32'") def test_toolongargs_issue224(testdir): result = testdir.runpytest("-m", "hello" * 500) > assert result.ret == EXIT_NOTESTSCOLLECTED E assert 3 == 5 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63196dd0>.ret ../../../../pytest-3.10.1/testing/test_config.py:694: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________ test_config_in_subdirectory_colon_command_line_issue2148 ___________ testdir = def test_config_in_subdirectory_colon_command_line_issue2148(testdir): conftest_source = """ def pytest_addoption(parser): parser.addini('foo', 'foo') """ testdir.makefile( ".ini", **{"pytest": "[pytest]\nfoo = root", "subdir/pytest": "[pytest]\nfoo = subdir"} ) testdir.makepyfile( **{ "conftest": conftest_source, "subdir/conftest": conftest_source, "subdir/test_foo": """ def test_foo(pytestconfig): assert pytestconfig.getini('foo') == 'subdir' """, } ) result = testdir.runpytest("subdir/test_foo.py::test_foo") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c630b9510>.ret ../../../../pytest-3.10.1/testing/test_config.py:720: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________________ test_notify_exception _____________________________ testdir = capfd = <_pytest.capture.CaptureFixture object at 0x7f5c62fe3ad0> def test_notify_exception(testdir, capfd): > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_config.py:724: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ test_collect_pytest_prefix_bug_integration __________________ testdir = def test_collect_pytest_prefix_bug_integration(testdir): """Integration test for issue #3775""" p = testdir.copy_example("config/collect_pytest_prefix") result = testdir.runpytest(p) > result.stdout.fnmatch_lines("* 1 passed *") E Failed: nomatch: '* 1 passed *' E and: '' E remains unmatched: '* 1 passed *' ../../../../pytest-3.10.1/testing/test_config.py:777: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________ TestOverrideIniArgs.test_override_ini_names[setup.cfg] ____________ self = testdir = name = 'setup.cfg' @pytest.mark.parametrize("name", "setup.cfg tox.ini pytest.ini".split()) def test_override_ini_names(self, testdir, name): section = "[pytest]" if name != "setup.cfg" else "[tool:pytest]" testdir.tmpdir.join(name).write( textwrap.dedent( """ {section} custom = 1.0""".format( section=section ) ) ) testdir.makeconftest( """ def pytest_addoption(parser): parser.addini("custom", "")""" ) testdir.makepyfile( """ def test_pass(pytestconfig): ini_val = pytestconfig.getini("custom") print('\\ncustom_option:%s\\n' % ini_val)""" ) result = testdir.runpytest("--override-ini", "custom=2.0", "-s") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c6314cf50>.ret ../../../../pytest-3.10.1/testing/test_config.py:933: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestOverrideIniArgs.test_override_ini_names[tox.ini] _____________ self = testdir = name = 'tox.ini' @pytest.mark.parametrize("name", "setup.cfg tox.ini pytest.ini".split()) def test_override_ini_names(self, testdir, name): section = "[pytest]" if name != "setup.cfg" else "[tool:pytest]" testdir.tmpdir.join(name).write( textwrap.dedent( """ {section} custom = 1.0""".format( section=section ) ) ) testdir.makeconftest( """ def pytest_addoption(parser): parser.addini("custom", "")""" ) testdir.makepyfile( """ def test_pass(pytestconfig): ini_val = pytestconfig.getini("custom") print('\\ncustom_option:%s\\n' % ini_val)""" ) result = testdir.runpytest("--override-ini", "custom=2.0", "-s") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c62e63450>.ret ../../../../pytest-3.10.1/testing/test_config.py:933: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________ TestOverrideIniArgs.test_override_ini_names[pytest.ini] ____________ self = testdir = name = 'pytest.ini' @pytest.mark.parametrize("name", "setup.cfg tox.ini pytest.ini".split()) def test_override_ini_names(self, testdir, name): section = "[pytest]" if name != "setup.cfg" else "[tool:pytest]" testdir.tmpdir.join(name).write( textwrap.dedent( """ {section} custom = 1.0""".format( section=section ) ) ) testdir.makeconftest( """ def pytest_addoption(parser): parser.addini("custom", "")""" ) testdir.makepyfile( """ def test_pass(pytestconfig): ini_val = pytestconfig.getini("custom") print('\\ncustom_option:%s\\n' % ini_val)""" ) result = testdir.runpytest("--override-ini", "custom=2.0", "-s") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c62ebab90>.ret ../../../../pytest-3.10.1/testing/test_config.py:933: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestOverrideIniArgs.test_override_ini_pathlist ________________ self = testdir = def test_override_ini_pathlist(self, testdir): testdir.makeconftest( """ def pytest_addoption(parser): parser.addini("paths", "my new ini value", type="pathlist")""" ) testdir.makeini( """ [pytest] paths=blah.py""" ) testdir.makepyfile( """ import py.path def test_pathlist(pytestconfig): config_paths = pytestconfig.getini("paths") print(config_paths) for cpf in config_paths: print('\\nuser_path:%s' % cpf.basename)""" ) result = testdir.runpytest( "--override-ini", "paths=foo/bar1.py foo/bar2.py", "-s" ) > result.stdout.fnmatch_lines(["user_path:bar1.py", "user_path:bar2.py"]) E Failed: nomatch: 'user_path:bar1.py' E and: '' E remains unmatched: 'user_path:bar1.py' ../../../../pytest-3.10.1/testing/test_config.py:965: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________ TestOverrideIniArgs.test_override_multiple_and_default ____________ self = testdir = def test_override_multiple_and_default(self, testdir): testdir.makeconftest( """ def pytest_addoption(parser): addini = parser.addini addini("custom_option_1", "", default="o1") addini("custom_option_2", "", default="o2") addini("custom_option_3", "", default=False, type="bool") addini("custom_option_4", "", default=True, type="bool")""" ) testdir.makeini( """ [pytest] custom_option_1=custom_option_1 custom_option_2=custom_option_2 """ ) testdir.makepyfile( """ def test_multiple_options(pytestconfig): prefix = "custom_option" for x in range(1, 5): ini_value=pytestconfig.getini("%s_%d" % (prefix, x)) print('\\nini%d:%s' % (x, ini_value)) """ ) result = testdir.runpytest( "--override-ini", "custom_option_1=fulldir=/tmp/user1", "-o", "custom_option_2=url=/tmp/user2?a=b&d=e", "-o", "custom_option_3=True", "-o", "custom_option_4=no", "-s", ) result.stdout.fnmatch_lines( [ "ini1:fulldir=/tmp/user1", "ini2:url=/tmp/user2?a=b&d=e", "ini3:True", > "ini4:False", ] ) E Failed: nomatch: 'ini1:fulldir=/tmp/user1' E and: '' E remains unmatched: 'ini1:fulldir=/tmp/user1' ../../../../pytest-3.10.1/testing/test_config.py:1009: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________ TestOverrideIniArgs.test_override_ini_handled_asap[True] ___________ self = testdir = with_ini = True @pytest.mark.parametrize("with_ini", [True, False]) def test_override_ini_handled_asap(self, testdir, with_ini): """-o should be handled as soon as possible and always override what's in ini files (#2238)""" if with_ini: testdir.makeini( """ [pytest] python_files=test_*.py """ ) testdir.makepyfile( unittest_ini_handle=""" def test(): pass """ ) result = testdir.runpytest("--override-ini", "python_files=unittest_*.py") > result.stdout.fnmatch_lines(["*1 passed in*"]) E Failed: nomatch: '*1 passed in*' E and: '' E remains unmatched: '*1 passed in*' ../../../../pytest-3.10.1/testing/test_config.py:1040: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________ TestOverrideIniArgs.test_override_ini_handled_asap[False] ___________ self = testdir = with_ini = False @pytest.mark.parametrize("with_ini", [True, False]) def test_override_ini_handled_asap(self, testdir, with_ini): """-o should be handled as soon as possible and always override what's in ini files (#2238)""" if with_ini: testdir.makeini( """ [pytest] python_files=test_*.py """ ) testdir.makepyfile( unittest_ini_handle=""" def test(): pass """ ) result = testdir.runpytest("--override-ini", "python_files=unittest_*.py") > result.stdout.fnmatch_lines(["*1 passed in*"]) E Failed: nomatch: '*1 passed in*' E and: '' E remains unmatched: '*1 passed in*' ../../../../pytest-3.10.1/testing/test_config.py:1040: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestOverrideIniArgs.test_addopts_before_initini ________________ self = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c6330eb10> def test_addopts_before_initini(self, monkeypatch): cache_dir = ".custom_cache" monkeypatch.setenv("PYTEST_ADDOPTS", "-o cache_dir=%s" % cache_dir) from _pytest.config import get_config config = get_config() > config._preparse([], addopts=True) testing/test_config.py:1079: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) src/_pytest/config/argparsing.py:189: DeprecationWarning _________ TestOverrideIniArgs.test_override_ini_does_not_contain_paths _________ self = def test_override_ini_does_not_contain_paths(self): """Check that -o no longer swallows all options after it (#3103)""" from _pytest.config import get_config config = get_config() > config._preparse(["-o", "cache_dir=/cache", "/some/test/path"]) testing/test_config.py:1087: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) src/_pytest/config/argparsing.py:189: DeprecationWarning ____________ TestOverrideIniArgs.test_multiple_override_ini_options ____________ self = testdir = request = > def test_multiple_override_ini_options(self, testdir, request): """Ensure a file path following a '-o' option does not generate an error (#3103)""" testdir.makepyfile( **{ "conftest.py": """ def pytest_addoption(parser): parser.addini('foo', default=None, help='some option') parser.addini('bar', default=None, help='some option') """, "test_foo.py": """ def test(pytestconfig): assert pytestconfig.getini('foo') == '1' assert pytestconfig.getini('bar') == '0' """, "test_bar.py": """ def test(): assert False """, } ) result = testdir.runpytest("-o", "foo=1", "-o", "bar=0", "test_foo.py") assert "ERROR:" not in result.stderr.str() > result.stdout.fnmatch_lines(["collected 1 item", "*= 1 passed in *="]) E Failed: nomatch: 'collected 1 item' E and: '' E remains unmatched: 'collected 1 item' ../../../../pytest-3.10.1/testing/test_config.py:1112: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ test_conftest_confcutdir ___________________________ testdir = def test_conftest_confcutdir(testdir): testdir.makeconftest("assert 0") x = testdir.mkdir("x") x.join("conftest.py").write( textwrap.dedent( """\ def pytest_addoption(parser): parser.addoption("--xyz", action="store_true") """ ) ) result = testdir.runpytest("-h", "--confcutdir=%s" % x, x) > result.stdout.fnmatch_lines(["*--xyz*"]) E Failed: nomatch: '*--xyz*' E and: '' E remains unmatched: '*--xyz*' ../../../../pytest-3.10.1/testing/test_conftest.py:191: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________________ test_conftest_symlink _____________________________ testdir = @pytest.mark.skipif( not hasattr(py.path.local, "mksymlinkto"), reason="symlink not available on this platform", ) def test_conftest_symlink(testdir): """Ensure that conftest.py is used for resolved symlinks.""" real = testdir.tmpdir.mkdir("real") realtests = real.mkdir("app").mkdir("tests") testdir.tmpdir.join("symlinktests").mksymlinkto(realtests) testdir.tmpdir.join("symlink").mksymlinkto(real) testdir.makepyfile( **{ "real/app/tests/test_foo.py": "def test1(fixture): pass", "real/conftest.py": textwrap.dedent( """ import pytest print("conftest_loaded") @pytest.fixture def fixture(): print("fixture_used") """ ), } ) result = testdir.runpytest("-vs", "symlinktests") result.stdout.fnmatch_lines( [ "*conftest_loaded*", "real/app/tests/test_foo.py::test1 fixture_used", > "PASSED", ] ) E Failed: nomatch: '*conftest_loaded*' E and: '' E remains unmatched: '*conftest_loaded*' ../../../../pytest-3.10.1/testing/test_conftest.py:226: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________________ test_no_conftest _______________________________ testdir = def test_no_conftest(testdir): testdir.makeconftest("assert 0") result = testdir.runpytest("--noconftest") > assert result.ret == EXIT_NOTESTSCOLLECTED E assert 3 == 5 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c62b8f790>.ret ../../../../pytest-3.10.1/testing/test_conftest.py:250: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ test_conftest_existing_resultlog _______________________ testdir = def test_conftest_existing_resultlog(testdir): x = testdir.mkdir("tests") x.join("conftest.py").write( textwrap.dedent( """\ def pytest_addoption(parser): parser.addoption("--xyz", action="store_true") """ ) ) testdir.makefile(ext=".log", result="") # Writes result.log result = testdir.runpytest("-h", "--resultlog", "result.log") > result.stdout.fnmatch_lines(["*--xyz*"]) E Failed: nomatch: '*--xyz*' E and: '' E remains unmatched: '*--xyz*' ../../../../pytest-3.10.1/testing/test_conftest.py:268: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ test_conftest_existing_junitxml ________________________ testdir = def test_conftest_existing_junitxml(testdir): x = testdir.mkdir("tests") x.join("conftest.py").write( textwrap.dedent( """\ def pytest_addoption(parser): parser.addoption("--xyz", action="store_true") """ ) ) testdir.makefile(ext=".xml", junit="") # Writes junit.xml result = testdir.runpytest("-h", "--junitxml", "junit.xml") > result.stdout.fnmatch_lines(["*--xyz*"]) E Failed: nomatch: '*--xyz*' E and: '' E remains unmatched: '*--xyz*' ../../../../pytest-3.10.1/testing/test_conftest.py:283: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ test_fixture_dependency ____________________________ testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c62a86510> def test_fixture_dependency(testdir, monkeypatch): ct1 = testdir.makeconftest("") ct1 = testdir.makepyfile("__init__.py") ct1.write("") sub = testdir.mkdir("sub") sub.join("__init__.py").write("") sub.join("conftest.py").write( textwrap.dedent( """\ import pytest @pytest.fixture def not_needed(): assert False, "Should not be called!" @pytest.fixture def foo(): assert False, "Should not be called!" @pytest.fixture def bar(foo): return 'bar' """ ) ) subsub = sub.mkdir("subsub") subsub.join("__init__.py").write("") subsub.join("test_bar.py").write( textwrap.dedent( """\ import pytest @pytest.fixture def bar(): return 'sub bar' def test_event_fixture(bar): assert bar == 'sub bar' """ ) ) result = testdir.runpytest("sub") > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/test_conftest.py:343: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ test_conftest_found_with_double_dash _____________________ testdir = def test_conftest_found_with_double_dash(testdir): sub = testdir.mkdir("sub") sub.join("conftest.py").write( textwrap.dedent( """\ def pytest_addoption(parser): parser.addoption("--hello-world", action="store_true") """ ) ) p = sub.join("test_hello.py") p.write("def test_hello(): pass") result = testdir.runpytest(str(p) + "::test_hello", "-h") result.stdout.fnmatch_lines( """ *--hello-world* > """ ) E Failed: nomatch: '*--hello-world*' E and: '' E remains unmatched: '*--hello-world*' ../../../../pytest-3.10.1/testing/test_conftest.py:362: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __ TestConftestVisibility.test_parsefactories_relative_node_ids[runner-..-3] ___ self = testdir = chdir = 'runner', testarg = '..', expect_ntests_passed = 3 @pytest.mark.parametrize( "chdir,testarg,expect_ntests_passed", [ # Effective target: package/.. ("runner", "..", 3), ("package", "..", 3), ("swc", "../..", 3), ("snc", "../..", 3), # Effective target: package ("runner", "../package", 3), ("package", ".", 3), ("swc", "..", 3), ("snc", "..", 3), # Effective target: package/swc ("runner", "../package/swc", 1), ("package", "./swc", 1), ("swc", ".", 1), ("snc", "../swc", 1), # Effective target: package/snc ("runner", "../package/snc", 1), ("package", "./snc", 1), ("swc", "../snc", 1), ("snc", ".", 1), ], ) @pytest.mark.issue616 def test_parsefactories_relative_node_ids( self, testdir, chdir, testarg, expect_ntests_passed ): dirs = self._setup_tree(testdir) print("pytest run in cwd: %s" % (dirs[chdir].relto(testdir.tmpdir))) print("pytestarg : %s" % (testarg)) print("expected pass : %s" % (expect_ntests_passed)) with dirs[chdir].as_cwd(): > reprec = testdir.inline_run(testarg, "-q", "--traceconfig") ../../../../pytest-3.10.1/testing/test_conftest.py:466: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ----------------------------- Captured stdout call ----------------------------- created directory structure: package/snc/test_no_conftest.py package/snc/__init__.py package/swc/conftest.py package/swc/__init__.py package/swc/test_with_conftest.py package/snc package/conftest.py package/swc package/test_pkgroot.py empty package pytest run in cwd: empty pytestarg : .. expected pass : 3 __ TestConftestVisibility.test_parsefactories_relative_node_ids[package-..-3] __ self = testdir = chdir = 'package', testarg = '..', expect_ntests_passed = 3 @pytest.mark.parametrize( "chdir,testarg,expect_ntests_passed", [ # Effective target: package/.. ("runner", "..", 3), ("package", "..", 3), ("swc", "../..", 3), ("snc", "../..", 3), # Effective target: package ("runner", "../package", 3), ("package", ".", 3), ("swc", "..", 3), ("snc", "..", 3), # Effective target: package/swc ("runner", "../package/swc", 1), ("package", "./swc", 1), ("swc", ".", 1), ("snc", "../swc", 1), # Effective target: package/snc ("runner", "../package/snc", 1), ("package", "./snc", 1), ("swc", "../snc", 1), ("snc", ".", 1), ], ) @pytest.mark.issue616 def test_parsefactories_relative_node_ids( self, testdir, chdir, testarg, expect_ntests_passed ): dirs = self._setup_tree(testdir) print("pytest run in cwd: %s" % (dirs[chdir].relto(testdir.tmpdir))) print("pytestarg : %s" % (testarg)) print("expected pass : %s" % (expect_ntests_passed)) with dirs[chdir].as_cwd(): > reprec = testdir.inline_run(testarg, "-q", "--traceconfig") ../../../../pytest-3.10.1/testing/test_conftest.py:466: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ----------------------------- Captured stdout call ----------------------------- created directory structure: package/snc/test_no_conftest.py package/snc/__init__.py package/swc/conftest.py package/swc/__init__.py package/swc/test_with_conftest.py package/snc package/conftest.py package/swc package/test_pkgroot.py empty package pytest run in cwd: package pytestarg : .. expected pass : 3 __ TestConftestVisibility.test_parsefactories_relative_node_ids[swc-../..-3] ___ self = testdir = chdir = 'swc', testarg = '../..', expect_ntests_passed = 3 @pytest.mark.parametrize( "chdir,testarg,expect_ntests_passed", [ # Effective target: package/.. ("runner", "..", 3), ("package", "..", 3), ("swc", "../..", 3), ("snc", "../..", 3), # Effective target: package ("runner", "../package", 3), ("package", ".", 3), ("swc", "..", 3), ("snc", "..", 3), # Effective target: package/swc ("runner", "../package/swc", 1), ("package", "./swc", 1), ("swc", ".", 1), ("snc", "../swc", 1), # Effective target: package/snc ("runner", "../package/snc", 1), ("package", "./snc", 1), ("swc", "../snc", 1), ("snc", ".", 1), ], ) @pytest.mark.issue616 def test_parsefactories_relative_node_ids( self, testdir, chdir, testarg, expect_ntests_passed ): dirs = self._setup_tree(testdir) print("pytest run in cwd: %s" % (dirs[chdir].relto(testdir.tmpdir))) print("pytestarg : %s" % (testarg)) print("expected pass : %s" % (expect_ntests_passed)) with dirs[chdir].as_cwd(): > reprec = testdir.inline_run(testarg, "-q", "--traceconfig") ../../../../pytest-3.10.1/testing/test_conftest.py:466: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ----------------------------- Captured stdout call ----------------------------- created directory structure: package/snc/test_no_conftest.py package/snc/__init__.py package/swc/conftest.py package/swc/__init__.py package/swc/test_with_conftest.py package/snc package/conftest.py package/swc package/test_pkgroot.py empty package pytest run in cwd: package/swc pytestarg : ../.. expected pass : 3 __ TestConftestVisibility.test_parsefactories_relative_node_ids[snc-../..-3] ___ self = testdir = chdir = 'snc', testarg = '../..', expect_ntests_passed = 3 @pytest.mark.parametrize( "chdir,testarg,expect_ntests_passed", [ # Effective target: package/.. ("runner", "..", 3), ("package", "..", 3), ("swc", "../..", 3), ("snc", "../..", 3), # Effective target: package ("runner", "../package", 3), ("package", ".", 3), ("swc", "..", 3), ("snc", "..", 3), # Effective target: package/swc ("runner", "../package/swc", 1), ("package", "./swc", 1), ("swc", ".", 1), ("snc", "../swc", 1), # Effective target: package/snc ("runner", "../package/snc", 1), ("package", "./snc", 1), ("swc", "../snc", 1), ("snc", ".", 1), ], ) @pytest.mark.issue616 def test_parsefactories_relative_node_ids( self, testdir, chdir, testarg, expect_ntests_passed ): dirs = self._setup_tree(testdir) print("pytest run in cwd: %s" % (dirs[chdir].relto(testdir.tmpdir))) print("pytestarg : %s" % (testarg)) print("expected pass : %s" % (expect_ntests_passed)) with dirs[chdir].as_cwd(): > reprec = testdir.inline_run(testarg, "-q", "--traceconfig") ../../../../pytest-3.10.1/testing/test_conftest.py:466: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ----------------------------- Captured stdout call ----------------------------- created directory structure: package/snc/test_no_conftest.py package/snc/__init__.py package/swc/conftest.py package/swc/__init__.py package/swc/test_with_conftest.py package/snc package/conftest.py package/swc package/test_pkgroot.py empty package pytest run in cwd: package/snc pytestarg : ../.. expected pass : 3 TestConftestVisibility.test_parsefactories_relative_node_ids[runner-../package-3] self = testdir = chdir = 'runner', testarg = '../package', expect_ntests_passed = 3 @pytest.mark.parametrize( "chdir,testarg,expect_ntests_passed", [ # Effective target: package/.. ("runner", "..", 3), ("package", "..", 3), ("swc", "../..", 3), ("snc", "../..", 3), # Effective target: package ("runner", "../package", 3), ("package", ".", 3), ("swc", "..", 3), ("snc", "..", 3), # Effective target: package/swc ("runner", "../package/swc", 1), ("package", "./swc", 1), ("swc", ".", 1), ("snc", "../swc", 1), # Effective target: package/snc ("runner", "../package/snc", 1), ("package", "./snc", 1), ("swc", "../snc", 1), ("snc", ".", 1), ], ) @pytest.mark.issue616 def test_parsefactories_relative_node_ids( self, testdir, chdir, testarg, expect_ntests_passed ): dirs = self._setup_tree(testdir) print("pytest run in cwd: %s" % (dirs[chdir].relto(testdir.tmpdir))) print("pytestarg : %s" % (testarg)) print("expected pass : %s" % (expect_ntests_passed)) with dirs[chdir].as_cwd(): > reprec = testdir.inline_run(testarg, "-q", "--traceconfig") ../../../../pytest-3.10.1/testing/test_conftest.py:466: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ----------------------------- Captured stdout call ----------------------------- created directory structure: package/snc/test_no_conftest.py package/snc/__init__.py package/swc/conftest.py package/swc/__init__.py package/swc/test_with_conftest.py package/snc package/conftest.py package/swc package/test_pkgroot.py empty package pytest run in cwd: empty pytestarg : ../package expected pass : 3 __ TestConftestVisibility.test_parsefactories_relative_node_ids[package-.-3] ___ self = testdir = chdir = 'package', testarg = '.', expect_ntests_passed = 3 @pytest.mark.parametrize( "chdir,testarg,expect_ntests_passed", [ # Effective target: package/.. ("runner", "..", 3), ("package", "..", 3), ("swc", "../..", 3), ("snc", "../..", 3), # Effective target: package ("runner", "../package", 3), ("package", ".", 3), ("swc", "..", 3), ("snc", "..", 3), # Effective target: package/swc ("runner", "../package/swc", 1), ("package", "./swc", 1), ("swc", ".", 1), ("snc", "../swc", 1), # Effective target: package/snc ("runner", "../package/snc", 1), ("package", "./snc", 1), ("swc", "../snc", 1), ("snc", ".", 1), ], ) @pytest.mark.issue616 def test_parsefactories_relative_node_ids( self, testdir, chdir, testarg, expect_ntests_passed ): dirs = self._setup_tree(testdir) print("pytest run in cwd: %s" % (dirs[chdir].relto(testdir.tmpdir))) print("pytestarg : %s" % (testarg)) print("expected pass : %s" % (expect_ntests_passed)) with dirs[chdir].as_cwd(): > reprec = testdir.inline_run(testarg, "-q", "--traceconfig") ../../../../pytest-3.10.1/testing/test_conftest.py:466: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ----------------------------- Captured stdout call ----------------------------- created directory structure: package/snc/test_no_conftest.py package/snc/__init__.py package/swc/conftest.py package/swc/__init__.py package/swc/test_with_conftest.py package/snc package/conftest.py package/swc package/test_pkgroot.py empty package pytest run in cwd: package pytestarg : . expected pass : 3 ____ TestConftestVisibility.test_parsefactories_relative_node_ids[swc-..-3] ____ self = testdir = chdir = 'swc', testarg = '..', expect_ntests_passed = 3 @pytest.mark.parametrize( "chdir,testarg,expect_ntests_passed", [ # Effective target: package/.. ("runner", "..", 3), ("package", "..", 3), ("swc", "../..", 3), ("snc", "../..", 3), # Effective target: package ("runner", "../package", 3), ("package", ".", 3), ("swc", "..", 3), ("snc", "..", 3), # Effective target: package/swc ("runner", "../package/swc", 1), ("package", "./swc", 1), ("swc", ".", 1), ("snc", "../swc", 1), # Effective target: package/snc ("runner", "../package/snc", 1), ("package", "./snc", 1), ("swc", "../snc", 1), ("snc", ".", 1), ], ) @pytest.mark.issue616 def test_parsefactories_relative_node_ids( self, testdir, chdir, testarg, expect_ntests_passed ): dirs = self._setup_tree(testdir) print("pytest run in cwd: %s" % (dirs[chdir].relto(testdir.tmpdir))) print("pytestarg : %s" % (testarg)) print("expected pass : %s" % (expect_ntests_passed)) with dirs[chdir].as_cwd(): > reprec = testdir.inline_run(testarg, "-q", "--traceconfig") ../../../../pytest-3.10.1/testing/test_conftest.py:466: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ----------------------------- Captured stdout call ----------------------------- created directory structure: package/snc/test_no_conftest.py package/snc/__init__.py package/swc/conftest.py package/swc/__init__.py package/swc/test_with_conftest.py package/snc package/conftest.py package/swc package/test_pkgroot.py empty package pytest run in cwd: package/swc pytestarg : .. expected pass : 3 ____ TestConftestVisibility.test_parsefactories_relative_node_ids[snc-..-3] ____ self = testdir = chdir = 'snc', testarg = '..', expect_ntests_passed = 3 @pytest.mark.parametrize( "chdir,testarg,expect_ntests_passed", [ # Effective target: package/.. ("runner", "..", 3), ("package", "..", 3), ("swc", "../..", 3), ("snc", "../..", 3), # Effective target: package ("runner", "../package", 3), ("package", ".", 3), ("swc", "..", 3), ("snc", "..", 3), # Effective target: package/swc ("runner", "../package/swc", 1), ("package", "./swc", 1), ("swc", ".", 1), ("snc", "../swc", 1), # Effective target: package/snc ("runner", "../package/snc", 1), ("package", "./snc", 1), ("swc", "../snc", 1), ("snc", ".", 1), ], ) @pytest.mark.issue616 def test_parsefactories_relative_node_ids( self, testdir, chdir, testarg, expect_ntests_passed ): dirs = self._setup_tree(testdir) print("pytest run in cwd: %s" % (dirs[chdir].relto(testdir.tmpdir))) print("pytestarg : %s" % (testarg)) print("expected pass : %s" % (expect_ntests_passed)) with dirs[chdir].as_cwd(): > reprec = testdir.inline_run(testarg, "-q", "--traceconfig") ../../../../pytest-3.10.1/testing/test_conftest.py:466: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ----------------------------- Captured stdout call ----------------------------- created directory structure: package/snc/test_no_conftest.py package/snc/__init__.py package/swc/conftest.py package/swc/__init__.py package/swc/test_with_conftest.py package/snc package/conftest.py package/swc package/test_pkgroot.py empty package pytest run in cwd: package/snc pytestarg : .. expected pass : 3 TestConftestVisibility.test_parsefactories_relative_node_ids[runner-../package/swc-1] self = testdir = chdir = 'runner', testarg = '../package/swc', expect_ntests_passed = 1 @pytest.mark.parametrize( "chdir,testarg,expect_ntests_passed", [ # Effective target: package/.. ("runner", "..", 3), ("package", "..", 3), ("swc", "../..", 3), ("snc", "../..", 3), # Effective target: package ("runner", "../package", 3), ("package", ".", 3), ("swc", "..", 3), ("snc", "..", 3), # Effective target: package/swc ("runner", "../package/swc", 1), ("package", "./swc", 1), ("swc", ".", 1), ("snc", "../swc", 1), # Effective target: package/snc ("runner", "../package/snc", 1), ("package", "./snc", 1), ("swc", "../snc", 1), ("snc", ".", 1), ], ) @pytest.mark.issue616 def test_parsefactories_relative_node_ids( self, testdir, chdir, testarg, expect_ntests_passed ): dirs = self._setup_tree(testdir) print("pytest run in cwd: %s" % (dirs[chdir].relto(testdir.tmpdir))) print("pytestarg : %s" % (testarg)) print("expected pass : %s" % (expect_ntests_passed)) with dirs[chdir].as_cwd(): > reprec = testdir.inline_run(testarg, "-q", "--traceconfig") ../../../../pytest-3.10.1/testing/test_conftest.py:466: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ----------------------------- Captured stdout call ----------------------------- created directory structure: package/snc/test_no_conftest.py package/snc/__init__.py package/swc/conftest.py package/swc/__init__.py package/swc/test_with_conftest.py package/snc package/conftest.py package/swc package/test_pkgroot.py empty package pytest run in cwd: empty pytestarg : ../package/swc expected pass : 1 TestConftestVisibility.test_parsefactories_relative_node_ids[package-./swc-1] _ self = testdir = chdir = 'package', testarg = './swc', expect_ntests_passed = 1 @pytest.mark.parametrize( "chdir,testarg,expect_ntests_passed", [ # Effective target: package/.. ("runner", "..", 3), ("package", "..", 3), ("swc", "../..", 3), ("snc", "../..", 3), # Effective target: package ("runner", "../package", 3), ("package", ".", 3), ("swc", "..", 3), ("snc", "..", 3), # Effective target: package/swc ("runner", "../package/swc", 1), ("package", "./swc", 1), ("swc", ".", 1), ("snc", "../swc", 1), # Effective target: package/snc ("runner", "../package/snc", 1), ("package", "./snc", 1), ("swc", "../snc", 1), ("snc", ".", 1), ], ) @pytest.mark.issue616 def test_parsefactories_relative_node_ids( self, testdir, chdir, testarg, expect_ntests_passed ): dirs = self._setup_tree(testdir) print("pytest run in cwd: %s" % (dirs[chdir].relto(testdir.tmpdir))) print("pytestarg : %s" % (testarg)) print("expected pass : %s" % (expect_ntests_passed)) with dirs[chdir].as_cwd(): > reprec = testdir.inline_run(testarg, "-q", "--traceconfig") ../../../../pytest-3.10.1/testing/test_conftest.py:466: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ----------------------------- Captured stdout call ----------------------------- created directory structure: package/snc/test_no_conftest.py package/snc/__init__.py package/swc/conftest.py package/swc/__init__.py package/swc/test_with_conftest.py package/snc package/conftest.py package/swc package/test_pkgroot.py empty package pytest run in cwd: package pytestarg : ./swc expected pass : 1 ____ TestConftestVisibility.test_parsefactories_relative_node_ids[swc-.-1] _____ self = testdir = chdir = 'swc', testarg = '.', expect_ntests_passed = 1 @pytest.mark.parametrize( "chdir,testarg,expect_ntests_passed", [ # Effective target: package/.. ("runner", "..", 3), ("package", "..", 3), ("swc", "../..", 3), ("snc", "../..", 3), # Effective target: package ("runner", "../package", 3), ("package", ".", 3), ("swc", "..", 3), ("snc", "..", 3), # Effective target: package/swc ("runner", "../package/swc", 1), ("package", "./swc", 1), ("swc", ".", 1), ("snc", "../swc", 1), # Effective target: package/snc ("runner", "../package/snc", 1), ("package", "./snc", 1), ("swc", "../snc", 1), ("snc", ".", 1), ], ) @pytest.mark.issue616 def test_parsefactories_relative_node_ids( self, testdir, chdir, testarg, expect_ntests_passed ): dirs = self._setup_tree(testdir) print("pytest run in cwd: %s" % (dirs[chdir].relto(testdir.tmpdir))) print("pytestarg : %s" % (testarg)) print("expected pass : %s" % (expect_ntests_passed)) with dirs[chdir].as_cwd(): > reprec = testdir.inline_run(testarg, "-q", "--traceconfig") ../../../../pytest-3.10.1/testing/test_conftest.py:466: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ----------------------------- Captured stdout call ----------------------------- created directory structure: package/snc/test_no_conftest.py package/snc/__init__.py package/swc/conftest.py package/swc/__init__.py package/swc/test_with_conftest.py package/snc package/conftest.py package/swc package/test_pkgroot.py empty package pytest run in cwd: package/swc pytestarg : . expected pass : 1 __ TestConftestVisibility.test_parsefactories_relative_node_ids[snc-../swc-1] __ self = testdir = chdir = 'snc', testarg = '../swc', expect_ntests_passed = 1 @pytest.mark.parametrize( "chdir,testarg,expect_ntests_passed", [ # Effective target: package/.. ("runner", "..", 3), ("package", "..", 3), ("swc", "../..", 3), ("snc", "../..", 3), # Effective target: package ("runner", "../package", 3), ("package", ".", 3), ("swc", "..", 3), ("snc", "..", 3), # Effective target: package/swc ("runner", "../package/swc", 1), ("package", "./swc", 1), ("swc", ".", 1), ("snc", "../swc", 1), # Effective target: package/snc ("runner", "../package/snc", 1), ("package", "./snc", 1), ("swc", "../snc", 1), ("snc", ".", 1), ], ) @pytest.mark.issue616 def test_parsefactories_relative_node_ids( self, testdir, chdir, testarg, expect_ntests_passed ): dirs = self._setup_tree(testdir) print("pytest run in cwd: %s" % (dirs[chdir].relto(testdir.tmpdir))) print("pytestarg : %s" % (testarg)) print("expected pass : %s" % (expect_ntests_passed)) with dirs[chdir].as_cwd(): > reprec = testdir.inline_run(testarg, "-q", "--traceconfig") ../../../../pytest-3.10.1/testing/test_conftest.py:466: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ----------------------------- Captured stdout call ----------------------------- created directory structure: package/snc/test_no_conftest.py package/snc/__init__.py package/swc/conftest.py package/swc/__init__.py package/swc/test_with_conftest.py package/snc package/conftest.py package/swc package/test_pkgroot.py empty package pytest run in cwd: package/snc pytestarg : ../swc expected pass : 1 TestConftestVisibility.test_parsefactories_relative_node_ids[runner-../package/snc-1] self = testdir = chdir = 'runner', testarg = '../package/snc', expect_ntests_passed = 1 @pytest.mark.parametrize( "chdir,testarg,expect_ntests_passed", [ # Effective target: package/.. ("runner", "..", 3), ("package", "..", 3), ("swc", "../..", 3), ("snc", "../..", 3), # Effective target: package ("runner", "../package", 3), ("package", ".", 3), ("swc", "..", 3), ("snc", "..", 3), # Effective target: package/swc ("runner", "../package/swc", 1), ("package", "./swc", 1), ("swc", ".", 1), ("snc", "../swc", 1), # Effective target: package/snc ("runner", "../package/snc", 1), ("package", "./snc", 1), ("swc", "../snc", 1), ("snc", ".", 1), ], ) @pytest.mark.issue616 def test_parsefactories_relative_node_ids( self, testdir, chdir, testarg, expect_ntests_passed ): dirs = self._setup_tree(testdir) print("pytest run in cwd: %s" % (dirs[chdir].relto(testdir.tmpdir))) print("pytestarg : %s" % (testarg)) print("expected pass : %s" % (expect_ntests_passed)) with dirs[chdir].as_cwd(): > reprec = testdir.inline_run(testarg, "-q", "--traceconfig") ../../../../pytest-3.10.1/testing/test_conftest.py:466: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ----------------------------- Captured stdout call ----------------------------- created directory structure: package/snc/test_no_conftest.py package/snc/__init__.py package/swc/conftest.py package/swc/__init__.py package/swc/test_with_conftest.py package/snc package/conftest.py package/swc package/test_pkgroot.py empty package pytest run in cwd: empty pytestarg : ../package/snc expected pass : 1 TestConftestVisibility.test_parsefactories_relative_node_ids[package-./snc-1] _ self = testdir = chdir = 'package', testarg = './snc', expect_ntests_passed = 1 @pytest.mark.parametrize( "chdir,testarg,expect_ntests_passed", [ # Effective target: package/.. ("runner", "..", 3), ("package", "..", 3), ("swc", "../..", 3), ("snc", "../..", 3), # Effective target: package ("runner", "../package", 3), ("package", ".", 3), ("swc", "..", 3), ("snc", "..", 3), # Effective target: package/swc ("runner", "../package/swc", 1), ("package", "./swc", 1), ("swc", ".", 1), ("snc", "../swc", 1), # Effective target: package/snc ("runner", "../package/snc", 1), ("package", "./snc", 1), ("swc", "../snc", 1), ("snc", ".", 1), ], ) @pytest.mark.issue616 def test_parsefactories_relative_node_ids( self, testdir, chdir, testarg, expect_ntests_passed ): dirs = self._setup_tree(testdir) print("pytest run in cwd: %s" % (dirs[chdir].relto(testdir.tmpdir))) print("pytestarg : %s" % (testarg)) print("expected pass : %s" % (expect_ntests_passed)) with dirs[chdir].as_cwd(): > reprec = testdir.inline_run(testarg, "-q", "--traceconfig") ../../../../pytest-3.10.1/testing/test_conftest.py:466: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ----------------------------- Captured stdout call ----------------------------- created directory structure: package/snc/test_no_conftest.py package/snc/__init__.py package/swc/conftest.py package/swc/__init__.py package/swc/test_with_conftest.py package/snc package/conftest.py package/swc package/test_pkgroot.py empty package pytest run in cwd: package pytestarg : ./snc expected pass : 1 __ TestConftestVisibility.test_parsefactories_relative_node_ids[swc-../snc-1] __ self = testdir = chdir = 'swc', testarg = '../snc', expect_ntests_passed = 1 @pytest.mark.parametrize( "chdir,testarg,expect_ntests_passed", [ # Effective target: package/.. ("runner", "..", 3), ("package", "..", 3), ("swc", "../..", 3), ("snc", "../..", 3), # Effective target: package ("runner", "../package", 3), ("package", ".", 3), ("swc", "..", 3), ("snc", "..", 3), # Effective target: package/swc ("runner", "../package/swc", 1), ("package", "./swc", 1), ("swc", ".", 1), ("snc", "../swc", 1), # Effective target: package/snc ("runner", "../package/snc", 1), ("package", "./snc", 1), ("swc", "../snc", 1), ("snc", ".", 1), ], ) @pytest.mark.issue616 def test_parsefactories_relative_node_ids( self, testdir, chdir, testarg, expect_ntests_passed ): dirs = self._setup_tree(testdir) print("pytest run in cwd: %s" % (dirs[chdir].relto(testdir.tmpdir))) print("pytestarg : %s" % (testarg)) print("expected pass : %s" % (expect_ntests_passed)) with dirs[chdir].as_cwd(): > reprec = testdir.inline_run(testarg, "-q", "--traceconfig") ../../../../pytest-3.10.1/testing/test_conftest.py:466: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ----------------------------- Captured stdout call ----------------------------- created directory structure: package/snc/test_no_conftest.py package/snc/__init__.py package/swc/conftest.py package/swc/__init__.py package/swc/test_with_conftest.py package/snc package/conftest.py package/swc package/test_pkgroot.py empty package pytest run in cwd: package/swc pytestarg : ../snc expected pass : 1 ____ TestConftestVisibility.test_parsefactories_relative_node_ids[snc-.-1] _____ self = testdir = chdir = 'snc', testarg = '.', expect_ntests_passed = 1 @pytest.mark.parametrize( "chdir,testarg,expect_ntests_passed", [ # Effective target: package/.. ("runner", "..", 3), ("package", "..", 3), ("swc", "../..", 3), ("snc", "../..", 3), # Effective target: package ("runner", "../package", 3), ("package", ".", 3), ("swc", "..", 3), ("snc", "..", 3), # Effective target: package/swc ("runner", "../package/swc", 1), ("package", "./swc", 1), ("swc", ".", 1), ("snc", "../swc", 1), # Effective target: package/snc ("runner", "../package/snc", 1), ("package", "./snc", 1), ("swc", "../snc", 1), ("snc", ".", 1), ], ) @pytest.mark.issue616 def test_parsefactories_relative_node_ids( self, testdir, chdir, testarg, expect_ntests_passed ): dirs = self._setup_tree(testdir) print("pytest run in cwd: %s" % (dirs[chdir].relto(testdir.tmpdir))) print("pytestarg : %s" % (testarg)) print("expected pass : %s" % (expect_ntests_passed)) with dirs[chdir].as_cwd(): > reprec = testdir.inline_run(testarg, "-q", "--traceconfig") ../../../../pytest-3.10.1/testing/test_conftest.py:466: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ----------------------------- Captured stdout call ----------------------------- created directory structure: package/snc/test_no_conftest.py package/snc/__init__.py package/swc/conftest.py package/swc/__init__.py package/swc/test_with_conftest.py package/snc package/conftest.py package/swc package/test_pkgroot.py empty package pytest run in cwd: package/snc pytestarg : . expected pass : 1 __________________ test_search_conftest_up_to_inifile[.-2-0] ___________________ testdir = confcutdir = '.', passed = 2, error = 0 @pytest.mark.parametrize( "confcutdir,passed,error", [(".", 2, 0), ("src", 1, 1), (None, 1, 1)] ) def test_search_conftest_up_to_inifile(testdir, confcutdir, passed, error): """Test that conftest files are detected only up to an ini file, unless an explicit --confcutdir option is given. """ root = testdir.tmpdir src = root.join("src").ensure(dir=1) src.join("pytest.ini").write("[pytest]") src.join("conftest.py").write( textwrap.dedent( """\ import pytest @pytest.fixture def fix1(): pass """ ) ) src.join("test_foo.py").write( textwrap.dedent( """\ def test_1(fix1): pass def test_2(out_of_reach): pass """ ) ) root.join("conftest.py").write( textwrap.dedent( """\ import pytest @pytest.fixture def out_of_reach(): pass """ ) ) args = [str(src)] if confcutdir: args = ["--confcutdir=%s" % root.join(confcutdir)] result = testdir.runpytest(*args) match = "" if passed: match += "*%d passed*" % passed if error: match += "*%d error*" % error > result.stdout.fnmatch_lines(match) E Failed: nomatch: '*2 passed*' E and: '' E remains unmatched: '*2 passed*' ../../../../pytest-3.10.1/testing/test_conftest.py:518: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ test_search_conftest_up_to_inifile[src-1-1] __________________ testdir = confcutdir = 'src', passed = 1, error = 1 @pytest.mark.parametrize( "confcutdir,passed,error", [(".", 2, 0), ("src", 1, 1), (None, 1, 1)] ) def test_search_conftest_up_to_inifile(testdir, confcutdir, passed, error): """Test that conftest files are detected only up to an ini file, unless an explicit --confcutdir option is given. """ root = testdir.tmpdir src = root.join("src").ensure(dir=1) src.join("pytest.ini").write("[pytest]") src.join("conftest.py").write( textwrap.dedent( """\ import pytest @pytest.fixture def fix1(): pass """ ) ) src.join("test_foo.py").write( textwrap.dedent( """\ def test_1(fix1): pass def test_2(out_of_reach): pass """ ) ) root.join("conftest.py").write( textwrap.dedent( """\ import pytest @pytest.fixture def out_of_reach(): pass """ ) ) args = [str(src)] if confcutdir: args = ["--confcutdir=%s" % root.join(confcutdir)] result = testdir.runpytest(*args) match = "" if passed: match += "*%d passed*" % passed if error: match += "*%d error*" % error > result.stdout.fnmatch_lines(match) E Failed: nomatch: '*1 passed**1 error*' E and: '' E remains unmatched: '*1 passed**1 error*' ../../../../pytest-3.10.1/testing/test_conftest.py:518: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ test_search_conftest_up_to_inifile[None-1-1] _________________ testdir = confcutdir = None, passed = 1, error = 1 @pytest.mark.parametrize( "confcutdir,passed,error", [(".", 2, 0), ("src", 1, 1), (None, 1, 1)] ) def test_search_conftest_up_to_inifile(testdir, confcutdir, passed, error): """Test that conftest files are detected only up to an ini file, unless an explicit --confcutdir option is given. """ root = testdir.tmpdir src = root.join("src").ensure(dir=1) src.join("pytest.ini").write("[pytest]") src.join("conftest.py").write( textwrap.dedent( """\ import pytest @pytest.fixture def fix1(): pass """ ) ) src.join("test_foo.py").write( textwrap.dedent( """\ def test_1(fix1): pass def test_2(out_of_reach): pass """ ) ) root.join("conftest.py").write( textwrap.dedent( """\ import pytest @pytest.fixture def out_of_reach(): pass """ ) ) args = [str(src)] if confcutdir: args = ["--confcutdir=%s" % root.join(confcutdir)] result = testdir.runpytest(*args) match = "" if passed: match += "*%d passed*" % passed if error: match += "*%d error*" % error > result.stdout.fnmatch_lines(match) E Failed: nomatch: '*1 passed**1 error*' E and: '' E remains unmatched: '*1 passed**1 error*' ../../../../pytest-3.10.1/testing/test_conftest.py:518: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ test_issue1073_conftest_special_objects ____________________ testdir = def test_issue1073_conftest_special_objects(testdir): testdir.makeconftest( """\ class DontTouchMe(object): def __getattr__(self, x): raise Exception('cant touch me') x = DontTouchMe() """ ) testdir.makepyfile( """\ def test_some(): pass """ ) res = testdir.runpytest() > assert res.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c62835690>.ret ../../../../pytest-3.10.1/testing/test_conftest.py:538: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ test_conftest_exception_handling _______________________ testdir = def test_conftest_exception_handling(testdir): testdir.makeconftest( """\ raise ValueError() """ ) testdir.makepyfile( """\ def test_some(): pass """ ) res = testdir.runpytest() > assert res.ret == 4 E assert 3 == 4 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c627c5a90>.ret ../../../../pytest-3.10.1/testing/test_conftest.py:554: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________________ test_hook_proxy ________________________________ testdir = def test_hook_proxy(testdir): """Session's gethookproxy() would cache conftests incorrectly (#2016). It was decided to remove the cache altogether. """ testdir.makepyfile( **{ "root/demo-0/test_foo1.py": "def test1(): pass", "root/demo-a/test_foo2.py": "def test1(): pass", "root/demo-a/conftest.py": """\ def pytest_ignore_collect(path, config): return True """, "root/demo-b/test_foo3.py": "def test1(): pass", "root/demo-c/test_foo4.py": "def test1(): pass", } ) result = testdir.runpytest() result.stdout.fnmatch_lines( > ["*test_foo1.py*", "*test_foo3.py*", "*test_foo4.py*", "*3 passed*"] ) E Failed: nomatch: '*test_foo1.py*' E and: '' E remains unmatched: '*test_foo1.py*' ../../../../pytest-3.10.1/testing/test_conftest.py:576: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________ test_required_option_help ___________________________ testdir = def test_required_option_help(testdir): testdir.makeconftest("assert 0") x = testdir.mkdir("x") x.join("conftest.py").write( textwrap.dedent( """\ def pytest_addoption(parser): parser.addoption("--xyz", action="store_true", required=True) """ ) ) result = testdir.runpytest("-h", x) assert "argument --xyz is required" not in result.stdout.str() > assert "general:" in result.stdout.str() E AssertionError: assert 'general:' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c629af9d0>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c629af9d0> = <_pytest.pytester.RunResult object at 0x7f5c62b6b7d0>.stdout ../../../../pytest-3.10.1/testing/test_conftest.py:593: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ TestDoctests.test_collect_testtextfile ____________________ self = testdir = def test_collect_testtextfile(self, testdir): w = testdir.maketxtfile(whatever="") checkfile = testdir.maketxtfile( test_something=""" alskdjalsdk >>> i = 5 >>> i-1 4 """ ) for x in (testdir.tmpdir, checkfile): # print "checking that %s returns custom items" % (x,) > items, reprec = testdir.inline_genitems(x) ../../../../pytest-3.10.1/testing/test_doctest.py:30: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ TestDoctests.test_collect_module_empty ____________________ self = testdir = def test_collect_module_empty(self, testdir): path = testdir.makepyfile(whatever="#") for p in (path, testdir.tmpdir): > items, reprec = testdir.inline_genitems(p, "--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________ TestDoctests.test_collect_module_single_modulelevel_doctest __________ self = testdir = def test_collect_module_single_modulelevel_doctest(self, testdir): path = testdir.makepyfile(whatever='""">>> pass"""') for p in (path, testdir.tmpdir): > items, reprec = testdir.inline_genitems(p, "--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________ TestDoctests.test_collect_module_two_doctest_one_modulelevel _________ self = testdir = def test_collect_module_two_doctest_one_modulelevel(self, testdir): path = testdir.makepyfile( whatever=""" '>>> x = None' def my_func(): ">>> magic = 42 " """ ) for p in (path, testdir.tmpdir): > items, reprec = testdir.inline_genitems(p, "--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________ TestDoctests.test_collect_module_two_doctest_no_modulelevel __________ self = testdir = def test_collect_module_two_doctest_no_modulelevel(self, testdir): path = testdir.makepyfile( whatever=""" '# Empty' def my_func(): ">>> magic = 42 " def unuseful(): ''' # This is a function # >>> # it doesn't have any doctest ''' def another(): ''' # This is another function >>> import os # this one does have a doctest ''' """ ) for p in (path, testdir.tmpdir): > items, reprec = testdir.inline_genitems(p, "--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:87: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestDoctests.test_simple_doctestfile _____________________ self = testdir = def test_simple_doctestfile(self, testdir): p = testdir.maketxtfile( test_doc=""" >>> x = 1 >>> x == 1 False """ ) > reprec = testdir.inline_run(p) ../../../../pytest-3.10.1/testing/test_doctest.py:102: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________________ TestDoctests.test_new_pattern _________________________ self = testdir = def test_new_pattern(self, testdir): p = testdir.maketxtfile( xdoc=""" >>> x = 1 >>> x == 1 False """ ) > reprec = testdir.inline_run(p, "--doctest-glob=x*.txt") ../../../../pytest-3.10.1/testing/test_doctest.py:113: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestDoctests.test_multiple_patterns ______________________ self = testdir = def test_multiple_patterns(self, testdir): """Test support for multiple --doctest-glob arguments (#1255). """ testdir.maketxtfile( xdoc=""" >>> 1 1 """ ) testdir.makefile( ".foo", test=""" >>> 1 1 """, ) testdir.maketxtfile( test_normal=""" >>> 1 1 """ ) expected = {"xdoc.txt", "test.foo", "test_normal.txt"} assert {x.basename for x in testdir.tmpdir.listdir()} == expected args = ["--doctest-glob=xdoc*.txt", "--doctest-glob=*.foo"] result = testdir.runpytest(*args) > result.stdout.fnmatch_lines(["*test.foo *", "*xdoc.txt *", "*2 passed*"]) E Failed: nomatch: '*test.foo *' E and: '' E remains unmatched: '*test.foo *' ../../../../pytest-3.10.1/testing/test_doctest.py:142: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ TestDoctests.test_encoding[foo-ascii] _____________________ self = testdir = test_string = 'foo', encoding = 'ascii' @pytest.mark.parametrize( " test_string, encoding", [(u"foo", "ascii"), (u"öäü", "latin1"), (u"öäü", "utf-8")], ) def test_encoding(self, testdir, test_string, encoding): """Test support for doctest_encoding ini option. """ testdir.makeini( """ [pytest] doctest_encoding={} """.format( encoding ) ) doctest = u""" >>> u"{}" {} """.format( test_string, repr(test_string) ) testdir._makefile(".txt", [doctest], {}, encoding=encoding) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/test_doctest.py:171: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestDoctests.test_encoding[\xf6\xe4\xfc-latin1] ________________ self = testdir = test_string = 'öäü', encoding = 'latin1' @pytest.mark.parametrize( " test_string, encoding", [(u"foo", "ascii"), (u"öäü", "latin1"), (u"öäü", "utf-8")], ) def test_encoding(self, testdir, test_string, encoding): """Test support for doctest_encoding ini option. """ testdir.makeini( """ [pytest] doctest_encoding={} """.format( encoding ) ) doctest = u""" >>> u"{}" {} """.format( test_string, repr(test_string) ) testdir._makefile(".txt", [doctest], {}, encoding=encoding) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/test_doctest.py:171: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestDoctests.test_encoding[\xf6\xe4\xfc-utf-8] ________________ self = testdir = test_string = 'öäü', encoding = 'utf-8' @pytest.mark.parametrize( " test_string, encoding", [(u"foo", "ascii"), (u"öäü", "latin1"), (u"öäü", "utf-8")], ) def test_encoding(self, testdir, test_string, encoding): """Test support for doctest_encoding ini option. """ testdir.makeini( """ [pytest] doctest_encoding={} """.format( encoding ) ) doctest = u""" >>> u"{}" {} """.format( test_string, repr(test_string) ) testdir._makefile(".txt", [doctest], {}, encoding=encoding) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/test_doctest.py:171: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestDoctests.test_doctest_unexpected_exception ________________ self = testdir = def test_doctest_unexpected_exception(self, testdir): testdir.maketxtfile( """ >>> i = 0 >>> 0 / i 2 """ ) result = testdir.runpytest("--doctest-modules") result.stdout.fnmatch_lines( [ "*unexpected_exception*", "*>>> i = 0*", "*>>> 0 / i*", > "*UNEXPECTED*ZeroDivision*", ] ) E Failed: nomatch: '*unexpected_exception*' E and: '' E remains unmatched: '*unexpected_exception*' ../../../../pytest-3.10.1/testing/test_doctest.py:187: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________ TestDoctests.test_docstring_partial_context_around_error ___________ self = testdir = def test_docstring_partial_context_around_error(self, testdir): """Test that we show some context before the actual line of a failing doctest. """ testdir.makepyfile( ''' def foo(): """ text-line-1 text-line-2 text-line-3 text-line-4 text-line-5 text-line-6 text-line-7 text-line-8 text-line-9 text-line-10 text-line-11 >>> 1 + 1 3 text-line-after """ ''' ) result = testdir.runpytest("--doctest-modules") result.stdout.fnmatch_lines( [ "*docstring_partial_context_around_error*", "005*text-line-3", "006*text-line-4", "013*text-line-11", "014*>>> 1 + 1", "Expected:", " 3", "Got:", > " 2", ] ) E Failed: nomatch: '*docstring_partial_context_around_error*' E and: '' E remains unmatched: '*docstring_partial_context_around_error*' ../../../../pytest-3.10.1/testing/test_doctest.py:228: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________ TestDoctests.test_docstring_full_context_around_error _____________ self = testdir = def test_docstring_full_context_around_error(self, testdir): """Test that we show the whole context before the actual line of a failing doctest, provided that the context is up to 10 lines long. """ testdir.makepyfile( ''' def foo(): """ text-line-1 text-line-2 >>> 1 + 1 3 """ ''' ) result = testdir.runpytest("--doctest-modules") result.stdout.fnmatch_lines( [ "*docstring_full_context_around_error*", "003*text-line-1", "004*text-line-2", "006*>>> 1 + 1", "Expected:", " 3", "Got:", > " 2", ] ) E Failed: nomatch: '*docstring_full_context_around_error*' E and: '' E remains unmatched: '*docstring_full_context_around_error*' ../../../../pytest-3.10.1/testing/test_doctest.py:261: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ TestDoctests.test_doctest_linedata_missing __________________ self = testdir = def test_doctest_linedata_missing(self, testdir): testdir.tmpdir.join("hello.py").write( textwrap.dedent( """\ class Fun(object): @property def test(self): ''' >>> a = 1 >>> 1/0 ''' """ ) ) result = testdir.runpytest("--doctest-modules") result.stdout.fnmatch_lines( [ "*hello*", "*EXAMPLE LOCATION UNKNOWN, not showing all tests of that example*", "*1/0*", "*UNEXPECTED*ZeroDivision*", > "*1 failed*", ] ) E Failed: nomatch: '*hello*' E and: '' E remains unmatched: '*hello*' ../../../../pytest-3.10.1/testing/test_doctest.py:286: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestDoctests.test_doctest_unex_importerror_only_txt ______________ self = testdir = def test_doctest_unex_importerror_only_txt(self, testdir): testdir.maketxtfile( """ >>> import asdalsdkjaslkdjasd >>> """ ) result = testdir.runpytest() # doctest is never executed because of error during hello.py collection result.stdout.fnmatch_lines( [ "*>>> import asdals*", "*UNEXPECTED*{e}*".format(e=MODULE_NOT_FOUND_ERROR), > "{e}: No module named *asdal*".format(e=MODULE_NOT_FOUND_ERROR), ] ) E Failed: nomatch: '*>>> import asdals*' E and: '' E remains unmatched: '*>>> import asdals*' ../../../../pytest-3.10.1/testing/test_doctest.py:303: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________ TestDoctests.test_doctest_unex_importerror_with_module ____________ self = testdir = def test_doctest_unex_importerror_with_module(self, testdir): testdir.tmpdir.join("hello.py").write( textwrap.dedent( """\ import asdalsdkjaslkdjasd """ ) ) testdir.maketxtfile( """ >>> import hello >>> """ ) result = testdir.runpytest("--doctest-modules") # doctest is never executed because of error during hello.py collection result.stdout.fnmatch_lines( [ "*ERROR collecting hello.py*", "*{e}: No module named *asdals*".format(e=MODULE_NOT_FOUND_ERROR), > "*Interrupted: 1 errors during collection*", ] ) E Failed: nomatch: '*ERROR collecting hello.py*' E and: '' E remains unmatched: '*ERROR collecting hello.py*' ../../../../pytest-3.10.1/testing/test_doctest.py:327: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ TestDoctests.test_doctestmodule ________________________ self = testdir = def test_doctestmodule(self, testdir): p = testdir.makepyfile( """ ''' >>> x = 1 >>> x == 1 False ''' """ ) > reprec = testdir.inline_run(p, "--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:342: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________ TestDoctests.test_doctestmodule_external_and_issue116 _____________ self = testdir = def test_doctestmodule_external_and_issue116(self, testdir): p = testdir.mkpydir("hello") p.join("__init__.py").write( textwrap.dedent( """\ def somefunc(): ''' >>> i = 0 >>> i + 1 2 ''' """ ) ) result = testdir.runpytest(p, "--doctest-modules") result.stdout.fnmatch_lines( [ "003 *>>> i = 0", "004 *>>> i + 1", "*Expected:", "* 2", "*Got:", "* 1", > "*:4: DocTestFailure", ] ) E Failed: nomatch: '003 *>>> i = 0' E and: '' E remains unmatched: '003 *>>> i = 0' ../../../../pytest-3.10.1/testing/test_doctest.py:368: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ TestDoctests.test_txtfile_failing _______________________ self = testdir = def test_txtfile_failing(self, testdir): p = testdir.maketxtfile( """ >>> i = 0 >>> i + 1 2 """ ) result = testdir.runpytest(p, "-s") result.stdout.fnmatch_lines( [ "001 >>> i = 0", "002 >>> i + 1", "Expected:", " 2", "Got:", " 1", > "*test_txtfile_failing.txt:2: DocTestFailure", ] ) E Failed: nomatch: '001 >>> i = 0' E and: '' E remains unmatched: '001 >>> i = 0' ../../../../pytest-3.10.1/testing/test_doctest.py:389: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ TestDoctests.test_txtfile_with_fixtures ____________________ self = testdir = def test_txtfile_with_fixtures(self, testdir): p = testdir.maketxtfile( """ >>> dir = getfixture('tmpdir') >>> type(dir).__name__ 'LocalPath' """ ) > reprec = testdir.inline_run(p) ../../../../pytest-3.10.1/testing/test_doctest.py:401: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestDoctests.test_txtfile_with_usefixtures_in_ini _______________ self = testdir = def test_txtfile_with_usefixtures_in_ini(self, testdir): testdir.makeini( """ [pytest] usefixtures = myfixture """ ) testdir.makeconftest( """ import pytest @pytest.fixture def myfixture(monkeypatch): monkeypatch.setenv("HELLO", "WORLD") """ ) p = testdir.maketxtfile( """ >>> import os >>> os.environ["HELLO"] 'WORLD' """ ) > reprec = testdir.inline_run(p) ../../../../pytest-3.10.1/testing/test_doctest.py:427: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ TestDoctests.test_doctestmodule_with_fixtures _________________ self = testdir = def test_doctestmodule_with_fixtures(self, testdir): p = testdir.makepyfile( """ ''' >>> dir = getfixture('tmpdir') >>> type(dir).__name__ 'LocalPath' ''' """ ) > reprec = testdir.inline_run(p, "--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:440: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________ TestDoctests.test_doctestmodule_three_tests __________________ self = testdir = def test_doctestmodule_three_tests(self, testdir): p = testdir.makepyfile( """ ''' >>> dir = getfixture('tmpdir') >>> type(dir).__name__ 'LocalPath' ''' def my_func(): ''' >>> magic = 42 >>> magic - 42 0 ''' def unuseful(): pass def another(): ''' >>> import os >>> os is os True ''' """ ) > reprec = testdir.inline_run(p, "--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:467: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestDoctests.test_doctestmodule_two_tests_one_fail ______________ self = testdir = def test_doctestmodule_two_tests_one_fail(self, testdir): p = testdir.makepyfile( """ class MyClass(object): def bad_meth(self): ''' >>> magic = 42 >>> magic 0 ''' def nice_meth(self): ''' >>> magic = 42 >>> magic - 42 0 ''' """ ) > reprec = testdir.inline_run(p, "--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:488: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestDoctests.test_ignored_whitespace _____________________ self = testdir = def test_ignored_whitespace(self, testdir): testdir.makeini( """ [pytest] doctest_optionflags = ELLIPSIS NORMALIZE_WHITESPACE """ ) p = testdir.makepyfile( """ class MyClass(object): ''' >>> a = "foo " >>> print(a) foo ''' pass """ ) > reprec = testdir.inline_run(p, "--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:509: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestDoctests.test_non_ignored_whitespace ___________________ self = testdir = def test_non_ignored_whitespace(self, testdir): testdir.makeini( """ [pytest] doctest_optionflags = ELLIPSIS """ ) p = testdir.makepyfile( """ class MyClass(object): ''' >>> a = "foo " >>> print(a) foo ''' pass """ ) > reprec = testdir.inline_run(p, "--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:530: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ TestDoctests.test_ignored_whitespace_glob ___________________ self = testdir = def test_ignored_whitespace_glob(self, testdir): testdir.makeini( """ [pytest] doctest_optionflags = ELLIPSIS NORMALIZE_WHITESPACE """ ) p = testdir.maketxtfile( xdoc=""" >>> a = "foo " >>> print(a) foo """ ) > reprec = testdir.inline_run(p, "--doctest-glob=x*.txt") ../../../../pytest-3.10.1/testing/test_doctest.py:547: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ TestDoctests.test_non_ignored_whitespace_glob _________________ self = testdir = def test_non_ignored_whitespace_glob(self, testdir): testdir.makeini( """ [pytest] doctest_optionflags = ELLIPSIS """ ) p = testdir.maketxtfile( xdoc=""" >>> a = "foo " >>> print(a) foo """ ) > reprec = testdir.inline_run(p, "--doctest-glob=x*.txt") ../../../../pytest-3.10.1/testing/test_doctest.py:564: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________ TestDoctests.test_contains_unicode ______________________ self = testdir = def test_contains_unicode(self, testdir): """Fix internal error with docstrings containing non-ascii characters. """ testdir.makepyfile( u''' # encoding: utf-8 def foo(): """ >>> name = 'с' # not letter 'c' but instead Cyrillic 's'. 'anything' """ ''' ) result = testdir.runpytest("--doctest-modules") > result.stdout.fnmatch_lines(["Got nothing", "* 1 failed in*"]) E Failed: nomatch: 'Got nothing' E and: '' E remains unmatched: 'Got nothing' ../../../../pytest-3.10.1/testing/test_doctest.py:581: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestDoctests.test_ignore_import_errors_on_doctest _______________ self = testdir = def test_ignore_import_errors_on_doctest(self, testdir): p = testdir.makepyfile( """ import asdf def add_one(x): ''' >>> add_one(1) 2 ''' return x + 1 """ ) reprec = testdir.inline_run( > p, "--doctest-modules", "--doctest-ignore-import-errors" ) ../../../../pytest-3.10.1/testing/test_doctest.py:598: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ TestDoctests.test_junit_report_for_doctest __________________ self = testdir = def test_junit_report_for_doctest(self, testdir): """ #713: Fix --junit-xml option when used with --doctest-modules. """ p = testdir.makepyfile( """ def foo(): ''' >>> 1 + 1 3 ''' pass """ ) > reprec = testdir.inline_run(p, "--doctest-modules", "--junit-xml=junit.xml") ../../../../pytest-3.10.1/testing/test_doctest.py:616: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________ TestDoctests.test_unicode_doctest _______________________ self = testdir = def test_unicode_doctest(self, testdir): """ Test case for issue 2434: DecodeError on Python 2 when doctest contains non-ascii characters. """ p = testdir.maketxtfile( test_unicode_doctest=""" .. doctest:: >>> print( ... "Hi\\n\\nByé") Hi ... Byé >>> 1/0 # Byé 1 """ ) result = testdir.runpytest(p) result.stdout.fnmatch_lines( > ["*UNEXPECTED EXCEPTION: ZeroDivisionError*", "*1 failed*"] ) E Failed: nomatch: '*UNEXPECTED EXCEPTION: ZeroDivisionError*' E and: '' E remains unmatched: '*UNEXPECTED EXCEPTION: ZeroDivisionError*' ../../../../pytest-3.10.1/testing/test_doctest.py:639: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ TestDoctests.test_unicode_doctest_module ___________________ self = testdir = def test_unicode_doctest_module(self, testdir): """ Test case for issue 2434: DecodeError on Python 2 when doctest docstring contains non-ascii characters. """ p = testdir.makepyfile( test_unicode_doctest_module=""" # -*- encoding: utf-8 -*- from __future__ import unicode_literals def fix_bad_unicode(text): ''' >>> print(fix_bad_unicode('único')) único ''' return "único" """ ) result = testdir.runpytest(p, "--doctest-modules") > result.stdout.fnmatch_lines(["* 1 passed *"]) E Failed: nomatch: '* 1 passed *' E and: '' E remains unmatched: '* 1 passed *' ../../../../pytest-3.10.1/testing/test_doctest.py:661: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ TestDoctests.test_print_unicode_value _____________________ self = testdir = def test_print_unicode_value(self, testdir): """ Test case for issue 3583: Printing Unicode in doctest under Python 2.7 doesn't work """ p = testdir.maketxtfile( test_print_unicode_value=r""" Here is a doctest:: >>> print(u'\xE5\xE9\xEE\xF8\xFC') åéîøü """ ) result = testdir.runpytest(p) > result.stdout.fnmatch_lines(["* 1 passed *"]) E Failed: nomatch: '* 1 passed *' E and: '' E remains unmatched: '* 1 passed *' ../../../../pytest-3.10.1/testing/test_doctest.py:677: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ TestDoctests.test_reportinfo _________________________ self = testdir = def test_reportinfo(self, testdir): """ Test case to make sure that DoctestItem.reportinfo() returns lineno. """ p = testdir.makepyfile( test_reportinfo=""" def foo(x): ''' >>> foo('a') 'b' ''' return 'c' """ ) > items, reprec = testdir.inline_genitems(p, "--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:693: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________________ TestDoctests.test_valid_setup_py _______________________ self = testdir = def test_valid_setup_py(self, testdir): """ Test to make sure that pytest ignores valid setup.py files when ran with --doctest-modules """ p = testdir.makepyfile( setup=""" from setuptools import setup, find_packages setup(name='sample', version='0.0', description='description', packages=find_packages() ) """ ) result = testdir.runpytest(p, "--doctest-modules") > result.stdout.fnmatch_lines(["*collected 0 items*"]) E Failed: nomatch: '*collected 0 items*' E and: '' E remains unmatched: '*collected 0 items*' ../../../../pytest-3.10.1/testing/test_doctest.py:713: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ TestDoctests.test_invalid_setup_py ______________________ self = testdir = def test_invalid_setup_py(self, testdir): """ Test to make sure that pytest reads setup.py files that are not used for python packages when ran with --doctest-modules """ p = testdir.makepyfile( setup=""" def test_foo(): return 'bar' """ ) result = testdir.runpytest(p, "--doctest-modules") > result.stdout.fnmatch_lines(["*collected 1 item*"]) E Failed: nomatch: '*collected 1 item*' E and: '' E remains unmatched: '*collected 1 item*' ../../../../pytest-3.10.1/testing/test_doctest.py:727: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestLiterals.test_allow_unicode[ini] _____________________ self = testdir = config_mode = 'ini' @pytest.mark.parametrize("config_mode", ["ini", "comment"]) def test_allow_unicode(self, testdir, config_mode): """Test that doctests which output unicode work in all python versions tested by pytest when the ALLOW_UNICODE option is used (either in the ini file or by an inline comment). """ if config_mode == "ini": testdir.makeini( """ [pytest] doctest_optionflags = ALLOW_UNICODE """ ) comment = "" else: comment = "#doctest: +ALLOW_UNICODE" testdir.maketxtfile( test_doc=""" >>> b'12'.decode('ascii') {comment} '12' """.format( comment=comment ) ) testdir.makepyfile( foo=""" def foo(): ''' >>> b'12'.decode('ascii') {comment} '12' ''' """.format( comment=comment ) ) > reprec = testdir.inline_run("--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:767: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestLiterals.test_allow_unicode[comment] ___________________ self = testdir = config_mode = 'comment' @pytest.mark.parametrize("config_mode", ["ini", "comment"]) def test_allow_unicode(self, testdir, config_mode): """Test that doctests which output unicode work in all python versions tested by pytest when the ALLOW_UNICODE option is used (either in the ini file or by an inline comment). """ if config_mode == "ini": testdir.makeini( """ [pytest] doctest_optionflags = ALLOW_UNICODE """ ) comment = "" else: comment = "#doctest: +ALLOW_UNICODE" testdir.maketxtfile( test_doc=""" >>> b'12'.decode('ascii') {comment} '12' """.format( comment=comment ) ) testdir.makepyfile( foo=""" def foo(): ''' >>> b'12'.decode('ascii') {comment} '12' ''' """.format( comment=comment ) ) > reprec = testdir.inline_run("--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:767: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________ TestLiterals.test_allow_bytes[ini] ______________________ self = testdir = config_mode = 'ini' @pytest.mark.parametrize("config_mode", ["ini", "comment"]) def test_allow_bytes(self, testdir, config_mode): """Test that doctests which output bytes work in all python versions tested by pytest when the ALLOW_BYTES option is used (either in the ini file or by an inline comment)(#1287). """ if config_mode == "ini": testdir.makeini( """ [pytest] doctest_optionflags = ALLOW_BYTES """ ) comment = "" else: comment = "#doctest: +ALLOW_BYTES" testdir.maketxtfile( test_doc=""" >>> b'foo' {comment} 'foo' """.format( comment=comment ) ) testdir.makepyfile( foo=""" def foo(): ''' >>> b'foo' {comment} 'foo' ''' """.format( comment=comment ) ) > reprec = testdir.inline_run("--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:806: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ TestLiterals.test_allow_bytes[comment] ____________________ self = testdir = config_mode = 'comment' @pytest.mark.parametrize("config_mode", ["ini", "comment"]) def test_allow_bytes(self, testdir, config_mode): """Test that doctests which output bytes work in all python versions tested by pytest when the ALLOW_BYTES option is used (either in the ini file or by an inline comment)(#1287). """ if config_mode == "ini": testdir.makeini( """ [pytest] doctest_optionflags = ALLOW_BYTES """ ) comment = "" else: comment = "#doctest: +ALLOW_BYTES" testdir.maketxtfile( test_doc=""" >>> b'foo' {comment} 'foo' """.format( comment=comment ) ) testdir.makepyfile( foo=""" def foo(): ''' >>> b'foo' {comment} 'foo' ''' """.format( comment=comment ) ) > reprec = testdir.inline_run("--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:806: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________________ TestLiterals.test_unicode_string _______________________ self = testdir = def test_unicode_string(self, testdir): """Test that doctests which output unicode fail in Python 2 when the ALLOW_UNICODE option is not used. The same test should pass in Python 3. """ testdir.maketxtfile( test_doc=""" >>> b'12'.decode('ascii') '12' """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_doctest.py:820: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________________ TestLiterals.test_bytes_literal ________________________ self = testdir = def test_bytes_literal(self, testdir): """Test that doctests which output bytes fail in Python 3 when the ALLOW_BYTES option is not used. The same test should pass in Python 2 (#1287). """ testdir.maketxtfile( test_doc=""" >>> b'foo' 'foo' """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_doctest.py:835: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestDoctestSkips.test_one_skipped[text] ____________________ self = testdir = makedoctest = .makeit at 0x7f5c62bb0560> def test_one_skipped(self, testdir, makedoctest): makedoctest( """ >>> 1 + 1 # doctest: +SKIP 2 >>> 2 + 2 4 """ ) > reprec = testdir.inline_run("--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:867: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ TestDoctestSkips.test_one_skipped[module] ___________________ self = testdir = makedoctest = .makeit at 0x7f5c62b52b00> def test_one_skipped(self, testdir, makedoctest): makedoctest( """ >>> 1 + 1 # doctest: +SKIP 2 >>> 2 + 2 4 """ ) > reprec = testdir.inline_run("--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:867: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ TestDoctestSkips.test_one_skipped_failed[text] ________________ self = testdir = makedoctest = .makeit at 0x7f5c62c48ef0> def test_one_skipped_failed(self, testdir, makedoctest): makedoctest( """ >>> 1 + 1 # doctest: +SKIP 2 >>> 2 + 2 200 """ ) > reprec = testdir.inline_run("--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:879: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________ TestDoctestSkips.test_one_skipped_failed[module] _______________ self = testdir = makedoctest = .makeit at 0x7f5c629b8f80> def test_one_skipped_failed(self, testdir, makedoctest): makedoctest( """ >>> 1 + 1 # doctest: +SKIP 2 >>> 2 + 2 200 """ ) > reprec = testdir.inline_run("--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:879: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestDoctestSkips.test_all_skipped[text] ____________________ self = testdir = makedoctest = .makeit at 0x7f5c629b89e0> def test_all_skipped(self, testdir, makedoctest): makedoctest( """ >>> 1 + 1 # doctest: +SKIP 2 >>> 2 + 2 # doctest: +SKIP 200 """ ) > reprec = testdir.inline_run("--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:891: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ TestDoctestSkips.test_all_skipped[module] ___________________ self = testdir = makedoctest = .makeit at 0x7f5c62883170> def test_all_skipped(self, testdir, makedoctest): makedoctest( """ >>> 1 + 1 # doctest: +SKIP 2 >>> 2 + 2 # doctest: +SKIP 200 """ ) > reprec = testdir.inline_run("--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:891: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________ TestDoctestSkips.test_vacuous_all_skipped[text] ________________ self = testdir = makedoctest = .makeit at 0x7f5c62b52320> def test_vacuous_all_skipped(self, testdir, makedoctest): makedoctest("") > reprec = testdir.inline_run("--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:896: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestDoctestSkips.test_vacuous_all_skipped[module] _______________ self = testdir = makedoctest = .makeit at 0x7f5c62bb0200> def test_vacuous_all_skipped(self, testdir, makedoctest): makedoctest("") > reprec = testdir.inline_run("--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:896: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ TestDoctestSkips.test_continue_on_failure ___________________ self = testdir = def test_continue_on_failure(self, testdir): testdir.maketxtfile( test_something=""" >>> i = 5 >>> def foo(): ... raise ValueError('error1') >>> foo() >>> i >>> i + 2 7 >>> i + 1 """ ) result = testdir.runpytest("--doctest-modules", "--doctest-continue-on-failure") > result.assert_outcomes(passed=0, failed=1) ../../../../pytest-3.10.1/testing/test_doctest.py:913: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c62b48750> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________ TestDoctestAutoUseFixtures.test_doctest_module_session_fixture ________ self = testdir = def test_doctest_module_session_fixture(self, testdir): """Test that session fixtures are initialized for doctest modules (#768) """ # session fixture which changes some global data, which will # be accessed by doctests in a module testdir.makeconftest( """ import pytest import sys @pytest.yield_fixture(autouse=True, scope='session') def myfixture(): assert not hasattr(sys, 'pytest_session_data') sys.pytest_session_data = 1 yield del sys.pytest_session_data """ ) testdir.makepyfile( foo=""" import sys def foo(): ''' >>> assert sys.pytest_session_data == 1 ''' def bar(): ''' >>> assert sys.pytest_session_data == 1 ''' """ ) result = testdir.runpytest("--doctest-modules") > result.stdout.fnmatch_lines("*2 passed*") E Failed: nomatch: '*2 passed*' E and: '' E remains unmatched: '*2 passed*' ../../../../pytest-3.10.1/testing/test_doctest.py:959: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________ TestDoctestAutoUseFixtures.test_fixture_scopes[True-module] __________ self = testdir = scope = 'module', enable_doctest = True @pytest.mark.parametrize("scope", SCOPES) @pytest.mark.parametrize("enable_doctest", [True, False]) def test_fixture_scopes(self, testdir, scope, enable_doctest): """Test that auto-use fixtures work properly with doctest modules. See #1057 and #1100. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse=True, scope="{scope}") def auto(request): return 99 """.format( scope=scope ) ) testdir.makepyfile( test_1=''' def test_foo(): """ >>> getfixture('auto') + 1 100 """ def test_bar(): assert 1 ''' ) params = ("--doctest-modules",) if enable_doctest else () passes = 3 if enable_doctest else 2 result = testdir.runpytest(*params) > result.stdout.fnmatch_lines(["*=== %d passed in *" % passes]) E Failed: nomatch: '*=== 3 passed in *' E and: '' E remains unmatched: '*=== 3 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:992: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________ TestDoctestAutoUseFixtures.test_fixture_scopes[True-session] _________ self = testdir = scope = 'session', enable_doctest = True @pytest.mark.parametrize("scope", SCOPES) @pytest.mark.parametrize("enable_doctest", [True, False]) def test_fixture_scopes(self, testdir, scope, enable_doctest): """Test that auto-use fixtures work properly with doctest modules. See #1057 and #1100. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse=True, scope="{scope}") def auto(request): return 99 """.format( scope=scope ) ) testdir.makepyfile( test_1=''' def test_foo(): """ >>> getfixture('auto') + 1 100 """ def test_bar(): assert 1 ''' ) params = ("--doctest-modules",) if enable_doctest else () passes = 3 if enable_doctest else 2 result = testdir.runpytest(*params) > result.stdout.fnmatch_lines(["*=== %d passed in *" % passes]) E Failed: nomatch: '*=== 3 passed in *' E and: '' E remains unmatched: '*=== 3 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:992: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________ TestDoctestAutoUseFixtures.test_fixture_scopes[True-class] __________ self = testdir = scope = 'class', enable_doctest = True @pytest.mark.parametrize("scope", SCOPES) @pytest.mark.parametrize("enable_doctest", [True, False]) def test_fixture_scopes(self, testdir, scope, enable_doctest): """Test that auto-use fixtures work properly with doctest modules. See #1057 and #1100. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse=True, scope="{scope}") def auto(request): return 99 """.format( scope=scope ) ) testdir.makepyfile( test_1=''' def test_foo(): """ >>> getfixture('auto') + 1 100 """ def test_bar(): assert 1 ''' ) params = ("--doctest-modules",) if enable_doctest else () passes = 3 if enable_doctest else 2 result = testdir.runpytest(*params) > result.stdout.fnmatch_lines(["*=== %d passed in *" % passes]) E Failed: nomatch: '*=== 3 passed in *' E and: '' E remains unmatched: '*=== 3 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:992: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________ TestDoctestAutoUseFixtures.test_fixture_scopes[True-function] _________ self = testdir = scope = 'function', enable_doctest = True @pytest.mark.parametrize("scope", SCOPES) @pytest.mark.parametrize("enable_doctest", [True, False]) def test_fixture_scopes(self, testdir, scope, enable_doctest): """Test that auto-use fixtures work properly with doctest modules. See #1057 and #1100. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse=True, scope="{scope}") def auto(request): return 99 """.format( scope=scope ) ) testdir.makepyfile( test_1=''' def test_foo(): """ >>> getfixture('auto') + 1 100 """ def test_bar(): assert 1 ''' ) params = ("--doctest-modules",) if enable_doctest else () passes = 3 if enable_doctest else 2 result = testdir.runpytest(*params) > result.stdout.fnmatch_lines(["*=== %d passed in *" % passes]) E Failed: nomatch: '*=== 3 passed in *' E and: '' E remains unmatched: '*=== 3 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:992: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________ TestDoctestAutoUseFixtures.test_fixture_scopes[False-module] _________ self = testdir = scope = 'module', enable_doctest = False @pytest.mark.parametrize("scope", SCOPES) @pytest.mark.parametrize("enable_doctest", [True, False]) def test_fixture_scopes(self, testdir, scope, enable_doctest): """Test that auto-use fixtures work properly with doctest modules. See #1057 and #1100. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse=True, scope="{scope}") def auto(request): return 99 """.format( scope=scope ) ) testdir.makepyfile( test_1=''' def test_foo(): """ >>> getfixture('auto') + 1 100 """ def test_bar(): assert 1 ''' ) params = ("--doctest-modules",) if enable_doctest else () passes = 3 if enable_doctest else 2 result = testdir.runpytest(*params) > result.stdout.fnmatch_lines(["*=== %d passed in *" % passes]) E Failed: nomatch: '*=== 2 passed in *' E and: '' E remains unmatched: '*=== 2 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:992: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________ TestDoctestAutoUseFixtures.test_fixture_scopes[False-session] _________ self = testdir = scope = 'session', enable_doctest = False @pytest.mark.parametrize("scope", SCOPES) @pytest.mark.parametrize("enable_doctest", [True, False]) def test_fixture_scopes(self, testdir, scope, enable_doctest): """Test that auto-use fixtures work properly with doctest modules. See #1057 and #1100. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse=True, scope="{scope}") def auto(request): return 99 """.format( scope=scope ) ) testdir.makepyfile( test_1=''' def test_foo(): """ >>> getfixture('auto') + 1 100 """ def test_bar(): assert 1 ''' ) params = ("--doctest-modules",) if enable_doctest else () passes = 3 if enable_doctest else 2 result = testdir.runpytest(*params) > result.stdout.fnmatch_lines(["*=== %d passed in *" % passes]) E Failed: nomatch: '*=== 2 passed in *' E and: '' E remains unmatched: '*=== 2 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:992: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________ TestDoctestAutoUseFixtures.test_fixture_scopes[False-class] __________ self = testdir = scope = 'class', enable_doctest = False @pytest.mark.parametrize("scope", SCOPES) @pytest.mark.parametrize("enable_doctest", [True, False]) def test_fixture_scopes(self, testdir, scope, enable_doctest): """Test that auto-use fixtures work properly with doctest modules. See #1057 and #1100. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse=True, scope="{scope}") def auto(request): return 99 """.format( scope=scope ) ) testdir.makepyfile( test_1=''' def test_foo(): """ >>> getfixture('auto') + 1 100 """ def test_bar(): assert 1 ''' ) params = ("--doctest-modules",) if enable_doctest else () passes = 3 if enable_doctest else 2 result = testdir.runpytest(*params) > result.stdout.fnmatch_lines(["*=== %d passed in *" % passes]) E Failed: nomatch: '*=== 2 passed in *' E and: '' E remains unmatched: '*=== 2 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:992: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________ TestDoctestAutoUseFixtures.test_fixture_scopes[False-function] ________ self = testdir = scope = 'function', enable_doctest = False @pytest.mark.parametrize("scope", SCOPES) @pytest.mark.parametrize("enable_doctest", [True, False]) def test_fixture_scopes(self, testdir, scope, enable_doctest): """Test that auto-use fixtures work properly with doctest modules. See #1057 and #1100. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse=True, scope="{scope}") def auto(request): return 99 """.format( scope=scope ) ) testdir.makepyfile( test_1=''' def test_foo(): """ >>> getfixture('auto') + 1 100 """ def test_bar(): assert 1 ''' ) params = ("--doctest-modules",) if enable_doctest else () passes = 3 if enable_doctest else 2 result = testdir.runpytest(*params) > result.stdout.fnmatch_lines(["*=== %d passed in *" % passes]) E Failed: nomatch: '*=== 2 passed in *' E and: '' E remains unmatched: '*=== 2 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:992: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestDoctestAutoUseFixtures.test_fixture_module_doctest_scopes[True-True-module] self = testdir = scope = 'module', autouse = True, use_fixture_in_doctest = True @pytest.mark.parametrize("scope", SCOPES) @pytest.mark.parametrize("autouse", [True, False]) @pytest.mark.parametrize("use_fixture_in_doctest", [True, False]) def test_fixture_module_doctest_scopes( self, testdir, scope, autouse, use_fixture_in_doctest ): """Test that auto-use fixtures work properly with doctest files. See #1057 and #1100. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse={autouse}, scope="{scope}") def auto(request): return 99 """.format( scope=scope, autouse=autouse ) ) if use_fixture_in_doctest: testdir.maketxtfile( test_doc=""" >>> getfixture('auto') 99 """ ) else: testdir.maketxtfile( test_doc=""" >>> 1 + 1 2 """ ) result = testdir.runpytest("--doctest-modules") assert "FAILURES" not in str(result.stdout.str()) > result.stdout.fnmatch_lines(["*=== 1 passed in *"]) E Failed: nomatch: '*=== 1 passed in *' E and: '' E remains unmatched: '*=== 1 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:1030: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestDoctestAutoUseFixtures.test_fixture_module_doctest_scopes[True-True-session] self = testdir = scope = 'session', autouse = True, use_fixture_in_doctest = True @pytest.mark.parametrize("scope", SCOPES) @pytest.mark.parametrize("autouse", [True, False]) @pytest.mark.parametrize("use_fixture_in_doctest", [True, False]) def test_fixture_module_doctest_scopes( self, testdir, scope, autouse, use_fixture_in_doctest ): """Test that auto-use fixtures work properly with doctest files. See #1057 and #1100. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse={autouse}, scope="{scope}") def auto(request): return 99 """.format( scope=scope, autouse=autouse ) ) if use_fixture_in_doctest: testdir.maketxtfile( test_doc=""" >>> getfixture('auto') 99 """ ) else: testdir.maketxtfile( test_doc=""" >>> 1 + 1 2 """ ) result = testdir.runpytest("--doctest-modules") assert "FAILURES" not in str(result.stdout.str()) > result.stdout.fnmatch_lines(["*=== 1 passed in *"]) E Failed: nomatch: '*=== 1 passed in *' E and: '' E remains unmatched: '*=== 1 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:1030: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestDoctestAutoUseFixtures.test_fixture_module_doctest_scopes[True-True-class] self = testdir = scope = 'class', autouse = True, use_fixture_in_doctest = True @pytest.mark.parametrize("scope", SCOPES) @pytest.mark.parametrize("autouse", [True, False]) @pytest.mark.parametrize("use_fixture_in_doctest", [True, False]) def test_fixture_module_doctest_scopes( self, testdir, scope, autouse, use_fixture_in_doctest ): """Test that auto-use fixtures work properly with doctest files. See #1057 and #1100. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse={autouse}, scope="{scope}") def auto(request): return 99 """.format( scope=scope, autouse=autouse ) ) if use_fixture_in_doctest: testdir.maketxtfile( test_doc=""" >>> getfixture('auto') 99 """ ) else: testdir.maketxtfile( test_doc=""" >>> 1 + 1 2 """ ) result = testdir.runpytest("--doctest-modules") assert "FAILURES" not in str(result.stdout.str()) > result.stdout.fnmatch_lines(["*=== 1 passed in *"]) E Failed: nomatch: '*=== 1 passed in *' E and: '' E remains unmatched: '*=== 1 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:1030: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestDoctestAutoUseFixtures.test_fixture_module_doctest_scopes[True-True-function] self = testdir = scope = 'function', autouse = True, use_fixture_in_doctest = True @pytest.mark.parametrize("scope", SCOPES) @pytest.mark.parametrize("autouse", [True, False]) @pytest.mark.parametrize("use_fixture_in_doctest", [True, False]) def test_fixture_module_doctest_scopes( self, testdir, scope, autouse, use_fixture_in_doctest ): """Test that auto-use fixtures work properly with doctest files. See #1057 and #1100. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse={autouse}, scope="{scope}") def auto(request): return 99 """.format( scope=scope, autouse=autouse ) ) if use_fixture_in_doctest: testdir.maketxtfile( test_doc=""" >>> getfixture('auto') 99 """ ) else: testdir.maketxtfile( test_doc=""" >>> 1 + 1 2 """ ) result = testdir.runpytest("--doctest-modules") assert "FAILURES" not in str(result.stdout.str()) > result.stdout.fnmatch_lines(["*=== 1 passed in *"]) E Failed: nomatch: '*=== 1 passed in *' E and: '' E remains unmatched: '*=== 1 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:1030: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestDoctestAutoUseFixtures.test_fixture_module_doctest_scopes[True-False-module] self = testdir = scope = 'module', autouse = False, use_fixture_in_doctest = True @pytest.mark.parametrize("scope", SCOPES) @pytest.mark.parametrize("autouse", [True, False]) @pytest.mark.parametrize("use_fixture_in_doctest", [True, False]) def test_fixture_module_doctest_scopes( self, testdir, scope, autouse, use_fixture_in_doctest ): """Test that auto-use fixtures work properly with doctest files. See #1057 and #1100. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse={autouse}, scope="{scope}") def auto(request): return 99 """.format( scope=scope, autouse=autouse ) ) if use_fixture_in_doctest: testdir.maketxtfile( test_doc=""" >>> getfixture('auto') 99 """ ) else: testdir.maketxtfile( test_doc=""" >>> 1 + 1 2 """ ) result = testdir.runpytest("--doctest-modules") assert "FAILURES" not in str(result.stdout.str()) > result.stdout.fnmatch_lines(["*=== 1 passed in *"]) E Failed: nomatch: '*=== 1 passed in *' E and: '' E remains unmatched: '*=== 1 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:1030: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestDoctestAutoUseFixtures.test_fixture_module_doctest_scopes[True-False-session] self = testdir = scope = 'session', autouse = False, use_fixture_in_doctest = True @pytest.mark.parametrize("scope", SCOPES) @pytest.mark.parametrize("autouse", [True, False]) @pytest.mark.parametrize("use_fixture_in_doctest", [True, False]) def test_fixture_module_doctest_scopes( self, testdir, scope, autouse, use_fixture_in_doctest ): """Test that auto-use fixtures work properly with doctest files. See #1057 and #1100. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse={autouse}, scope="{scope}") def auto(request): return 99 """.format( scope=scope, autouse=autouse ) ) if use_fixture_in_doctest: testdir.maketxtfile( test_doc=""" >>> getfixture('auto') 99 """ ) else: testdir.maketxtfile( test_doc=""" >>> 1 + 1 2 """ ) result = testdir.runpytest("--doctest-modules") assert "FAILURES" not in str(result.stdout.str()) > result.stdout.fnmatch_lines(["*=== 1 passed in *"]) E Failed: nomatch: '*=== 1 passed in *' E and: '' E remains unmatched: '*=== 1 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:1030: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestDoctestAutoUseFixtures.test_fixture_module_doctest_scopes[True-False-class] self = testdir = scope = 'class', autouse = False, use_fixture_in_doctest = True @pytest.mark.parametrize("scope", SCOPES) @pytest.mark.parametrize("autouse", [True, False]) @pytest.mark.parametrize("use_fixture_in_doctest", [True, False]) def test_fixture_module_doctest_scopes( self, testdir, scope, autouse, use_fixture_in_doctest ): """Test that auto-use fixtures work properly with doctest files. See #1057 and #1100. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse={autouse}, scope="{scope}") def auto(request): return 99 """.format( scope=scope, autouse=autouse ) ) if use_fixture_in_doctest: testdir.maketxtfile( test_doc=""" >>> getfixture('auto') 99 """ ) else: testdir.maketxtfile( test_doc=""" >>> 1 + 1 2 """ ) result = testdir.runpytest("--doctest-modules") assert "FAILURES" not in str(result.stdout.str()) > result.stdout.fnmatch_lines(["*=== 1 passed in *"]) E Failed: nomatch: '*=== 1 passed in *' E and: '' E remains unmatched: '*=== 1 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:1030: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestDoctestAutoUseFixtures.test_fixture_module_doctest_scopes[True-False-function] self = testdir = scope = 'function', autouse = False, use_fixture_in_doctest = True @pytest.mark.parametrize("scope", SCOPES) @pytest.mark.parametrize("autouse", [True, False]) @pytest.mark.parametrize("use_fixture_in_doctest", [True, False]) def test_fixture_module_doctest_scopes( self, testdir, scope, autouse, use_fixture_in_doctest ): """Test that auto-use fixtures work properly with doctest files. See #1057 and #1100. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse={autouse}, scope="{scope}") def auto(request): return 99 """.format( scope=scope, autouse=autouse ) ) if use_fixture_in_doctest: testdir.maketxtfile( test_doc=""" >>> getfixture('auto') 99 """ ) else: testdir.maketxtfile( test_doc=""" >>> 1 + 1 2 """ ) result = testdir.runpytest("--doctest-modules") assert "FAILURES" not in str(result.stdout.str()) > result.stdout.fnmatch_lines(["*=== 1 passed in *"]) E Failed: nomatch: '*=== 1 passed in *' E and: '' E remains unmatched: '*=== 1 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:1030: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestDoctestAutoUseFixtures.test_fixture_module_doctest_scopes[False-True-module] self = testdir = scope = 'module', autouse = True, use_fixture_in_doctest = False @pytest.mark.parametrize("scope", SCOPES) @pytest.mark.parametrize("autouse", [True, False]) @pytest.mark.parametrize("use_fixture_in_doctest", [True, False]) def test_fixture_module_doctest_scopes( self, testdir, scope, autouse, use_fixture_in_doctest ): """Test that auto-use fixtures work properly with doctest files. See #1057 and #1100. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse={autouse}, scope="{scope}") def auto(request): return 99 """.format( scope=scope, autouse=autouse ) ) if use_fixture_in_doctest: testdir.maketxtfile( test_doc=""" >>> getfixture('auto') 99 """ ) else: testdir.maketxtfile( test_doc=""" >>> 1 + 1 2 """ ) result = testdir.runpytest("--doctest-modules") assert "FAILURES" not in str(result.stdout.str()) > result.stdout.fnmatch_lines(["*=== 1 passed in *"]) E Failed: nomatch: '*=== 1 passed in *' E and: '' E remains unmatched: '*=== 1 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:1030: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestDoctestAutoUseFixtures.test_fixture_module_doctest_scopes[False-True-session] self = testdir = scope = 'session', autouse = True, use_fixture_in_doctest = False @pytest.mark.parametrize("scope", SCOPES) @pytest.mark.parametrize("autouse", [True, False]) @pytest.mark.parametrize("use_fixture_in_doctest", [True, False]) def test_fixture_module_doctest_scopes( self, testdir, scope, autouse, use_fixture_in_doctest ): """Test that auto-use fixtures work properly with doctest files. See #1057 and #1100. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse={autouse}, scope="{scope}") def auto(request): return 99 """.format( scope=scope, autouse=autouse ) ) if use_fixture_in_doctest: testdir.maketxtfile( test_doc=""" >>> getfixture('auto') 99 """ ) else: testdir.maketxtfile( test_doc=""" >>> 1 + 1 2 """ ) result = testdir.runpytest("--doctest-modules") assert "FAILURES" not in str(result.stdout.str()) > result.stdout.fnmatch_lines(["*=== 1 passed in *"]) E Failed: nomatch: '*=== 1 passed in *' E and: '' E remains unmatched: '*=== 1 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:1030: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestDoctestAutoUseFixtures.test_fixture_module_doctest_scopes[False-True-class] self = testdir = scope = 'class', autouse = True, use_fixture_in_doctest = False @pytest.mark.parametrize("scope", SCOPES) @pytest.mark.parametrize("autouse", [True, False]) @pytest.mark.parametrize("use_fixture_in_doctest", [True, False]) def test_fixture_module_doctest_scopes( self, testdir, scope, autouse, use_fixture_in_doctest ): """Test that auto-use fixtures work properly with doctest files. See #1057 and #1100. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse={autouse}, scope="{scope}") def auto(request): return 99 """.format( scope=scope, autouse=autouse ) ) if use_fixture_in_doctest: testdir.maketxtfile( test_doc=""" >>> getfixture('auto') 99 """ ) else: testdir.maketxtfile( test_doc=""" >>> 1 + 1 2 """ ) result = testdir.runpytest("--doctest-modules") assert "FAILURES" not in str(result.stdout.str()) > result.stdout.fnmatch_lines(["*=== 1 passed in *"]) E Failed: nomatch: '*=== 1 passed in *' E and: '' E remains unmatched: '*=== 1 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:1030: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestDoctestAutoUseFixtures.test_fixture_module_doctest_scopes[False-True-function] self = testdir = scope = 'function', autouse = True, use_fixture_in_doctest = False @pytest.mark.parametrize("scope", SCOPES) @pytest.mark.parametrize("autouse", [True, False]) @pytest.mark.parametrize("use_fixture_in_doctest", [True, False]) def test_fixture_module_doctest_scopes( self, testdir, scope, autouse, use_fixture_in_doctest ): """Test that auto-use fixtures work properly with doctest files. See #1057 and #1100. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse={autouse}, scope="{scope}") def auto(request): return 99 """.format( scope=scope, autouse=autouse ) ) if use_fixture_in_doctest: testdir.maketxtfile( test_doc=""" >>> getfixture('auto') 99 """ ) else: testdir.maketxtfile( test_doc=""" >>> 1 + 1 2 """ ) result = testdir.runpytest("--doctest-modules") assert "FAILURES" not in str(result.stdout.str()) > result.stdout.fnmatch_lines(["*=== 1 passed in *"]) E Failed: nomatch: '*=== 1 passed in *' E and: '' E remains unmatched: '*=== 1 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:1030: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestDoctestAutoUseFixtures.test_fixture_module_doctest_scopes[False-False-module] self = testdir = scope = 'module', autouse = False, use_fixture_in_doctest = False @pytest.mark.parametrize("scope", SCOPES) @pytest.mark.parametrize("autouse", [True, False]) @pytest.mark.parametrize("use_fixture_in_doctest", [True, False]) def test_fixture_module_doctest_scopes( self, testdir, scope, autouse, use_fixture_in_doctest ): """Test that auto-use fixtures work properly with doctest files. See #1057 and #1100. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse={autouse}, scope="{scope}") def auto(request): return 99 """.format( scope=scope, autouse=autouse ) ) if use_fixture_in_doctest: testdir.maketxtfile( test_doc=""" >>> getfixture('auto') 99 """ ) else: testdir.maketxtfile( test_doc=""" >>> 1 + 1 2 """ ) result = testdir.runpytest("--doctest-modules") assert "FAILURES" not in str(result.stdout.str()) > result.stdout.fnmatch_lines(["*=== 1 passed in *"]) E Failed: nomatch: '*=== 1 passed in *' E and: '' E remains unmatched: '*=== 1 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:1030: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestDoctestAutoUseFixtures.test_fixture_module_doctest_scopes[False-False-session] self = testdir = scope = 'session', autouse = False, use_fixture_in_doctest = False @pytest.mark.parametrize("scope", SCOPES) @pytest.mark.parametrize("autouse", [True, False]) @pytest.mark.parametrize("use_fixture_in_doctest", [True, False]) def test_fixture_module_doctest_scopes( self, testdir, scope, autouse, use_fixture_in_doctest ): """Test that auto-use fixtures work properly with doctest files. See #1057 and #1100. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse={autouse}, scope="{scope}") def auto(request): return 99 """.format( scope=scope, autouse=autouse ) ) if use_fixture_in_doctest: testdir.maketxtfile( test_doc=""" >>> getfixture('auto') 99 """ ) else: testdir.maketxtfile( test_doc=""" >>> 1 + 1 2 """ ) result = testdir.runpytest("--doctest-modules") assert "FAILURES" not in str(result.stdout.str()) > result.stdout.fnmatch_lines(["*=== 1 passed in *"]) E Failed: nomatch: '*=== 1 passed in *' E and: '' E remains unmatched: '*=== 1 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:1030: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestDoctestAutoUseFixtures.test_fixture_module_doctest_scopes[False-False-class] self = testdir = scope = 'class', autouse = False, use_fixture_in_doctest = False @pytest.mark.parametrize("scope", SCOPES) @pytest.mark.parametrize("autouse", [True, False]) @pytest.mark.parametrize("use_fixture_in_doctest", [True, False]) def test_fixture_module_doctest_scopes( self, testdir, scope, autouse, use_fixture_in_doctest ): """Test that auto-use fixtures work properly with doctest files. See #1057 and #1100. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse={autouse}, scope="{scope}") def auto(request): return 99 """.format( scope=scope, autouse=autouse ) ) if use_fixture_in_doctest: testdir.maketxtfile( test_doc=""" >>> getfixture('auto') 99 """ ) else: testdir.maketxtfile( test_doc=""" >>> 1 + 1 2 """ ) result = testdir.runpytest("--doctest-modules") assert "FAILURES" not in str(result.stdout.str()) > result.stdout.fnmatch_lines(["*=== 1 passed in *"]) E Failed: nomatch: '*=== 1 passed in *' E and: '' E remains unmatched: '*=== 1 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:1030: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestDoctestAutoUseFixtures.test_fixture_module_doctest_scopes[False-False-function] self = testdir = scope = 'function', autouse = False, use_fixture_in_doctest = False @pytest.mark.parametrize("scope", SCOPES) @pytest.mark.parametrize("autouse", [True, False]) @pytest.mark.parametrize("use_fixture_in_doctest", [True, False]) def test_fixture_module_doctest_scopes( self, testdir, scope, autouse, use_fixture_in_doctest ): """Test that auto-use fixtures work properly with doctest files. See #1057 and #1100. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse={autouse}, scope="{scope}") def auto(request): return 99 """.format( scope=scope, autouse=autouse ) ) if use_fixture_in_doctest: testdir.maketxtfile( test_doc=""" >>> getfixture('auto') 99 """ ) else: testdir.maketxtfile( test_doc=""" >>> 1 + 1 2 """ ) result = testdir.runpytest("--doctest-modules") assert "FAILURES" not in str(result.stdout.str()) > result.stdout.fnmatch_lines(["*=== 1 passed in *"]) E Failed: nomatch: '*=== 1 passed in *' E and: '' E remains unmatched: '*=== 1 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:1030: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____ TestDoctestAutoUseFixtures.test_auto_use_request_attributes[module] ______ self = testdir = scope = 'module' @pytest.mark.parametrize("scope", SCOPES) def test_auto_use_request_attributes(self, testdir, scope): """Check that all attributes of a request in an autouse fixture behave as expected when requested for a doctest item. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse=True, scope="{scope}") def auto(request): if "{scope}" == 'module': assert request.module is None if "{scope}" == 'class': assert request.cls is None if "{scope}" == 'function': assert request.function is None return 99 """.format( scope=scope ) ) testdir.maketxtfile( test_doc=""" >>> 1 + 1 2 """ ) result = testdir.runpytest("--doctest-modules") assert "FAILURES" not in str(result.stdout.str()) > result.stdout.fnmatch_lines(["*=== 1 passed in *"]) E Failed: nomatch: '*=== 1 passed in *' E and: '' E remains unmatched: '*=== 1 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:1062: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____ TestDoctestAutoUseFixtures.test_auto_use_request_attributes[session] _____ self = testdir = scope = 'session' @pytest.mark.parametrize("scope", SCOPES) def test_auto_use_request_attributes(self, testdir, scope): """Check that all attributes of a request in an autouse fixture behave as expected when requested for a doctest item. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse=True, scope="{scope}") def auto(request): if "{scope}" == 'module': assert request.module is None if "{scope}" == 'class': assert request.cls is None if "{scope}" == 'function': assert request.function is None return 99 """.format( scope=scope ) ) testdir.maketxtfile( test_doc=""" >>> 1 + 1 2 """ ) result = testdir.runpytest("--doctest-modules") assert "FAILURES" not in str(result.stdout.str()) > result.stdout.fnmatch_lines(["*=== 1 passed in *"]) E Failed: nomatch: '*=== 1 passed in *' E and: '' E remains unmatched: '*=== 1 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:1062: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______ TestDoctestAutoUseFixtures.test_auto_use_request_attributes[class] ______ self = testdir = scope = 'class' @pytest.mark.parametrize("scope", SCOPES) def test_auto_use_request_attributes(self, testdir, scope): """Check that all attributes of a request in an autouse fixture behave as expected when requested for a doctest item. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse=True, scope="{scope}") def auto(request): if "{scope}" == 'module': assert request.module is None if "{scope}" == 'class': assert request.cls is None if "{scope}" == 'function': assert request.function is None return 99 """.format( scope=scope ) ) testdir.maketxtfile( test_doc=""" >>> 1 + 1 2 """ ) result = testdir.runpytest("--doctest-modules") assert "FAILURES" not in str(result.stdout.str()) > result.stdout.fnmatch_lines(["*=== 1 passed in *"]) E Failed: nomatch: '*=== 1 passed in *' E and: '' E remains unmatched: '*=== 1 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:1062: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____ TestDoctestAutoUseFixtures.test_auto_use_request_attributes[function] _____ self = testdir = scope = 'function' @pytest.mark.parametrize("scope", SCOPES) def test_auto_use_request_attributes(self, testdir, scope): """Check that all attributes of a request in an autouse fixture behave as expected when requested for a doctest item. """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse=True, scope="{scope}") def auto(request): if "{scope}" == 'module': assert request.module is None if "{scope}" == 'class': assert request.cls is None if "{scope}" == 'function': assert request.function is None return 99 """.format( scope=scope ) ) testdir.maketxtfile( test_doc=""" >>> 1 + 1 2 """ ) result = testdir.runpytest("--doctest-modules") assert "FAILURES" not in str(result.stdout.str()) > result.stdout.fnmatch_lines(["*=== 1 passed in *"]) E Failed: nomatch: '*=== 1 passed in *' E and: '' E remains unmatched: '*=== 1 passed in *' ../../../../pytest-3.10.1/testing/test_doctest.py:1062: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________ TestDoctestNamespaceFixture.test_namespace_doctestfile[module] ________ self = testdir = scope = 'module' @pytest.mark.parametrize("scope", SCOPES) def test_namespace_doctestfile(self, testdir, scope): """ Check that inserting something into the namespace works in a simple text file doctest """ testdir.makeconftest( """ import pytest import contextlib @pytest.fixture(autouse=True, scope="{scope}") def add_contextlib(doctest_namespace): doctest_namespace['cl'] = contextlib """.format( scope=scope ) ) p = testdir.maketxtfile( """ >>> print(cl.__name__) contextlib """ ) > reprec = testdir.inline_run(p) ../../../../pytest-3.10.1/testing/test_doctest.py:1093: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______ TestDoctestNamespaceFixture.test_namespace_doctestfile[session] ________ self = testdir = scope = 'session' @pytest.mark.parametrize("scope", SCOPES) def test_namespace_doctestfile(self, testdir, scope): """ Check that inserting something into the namespace works in a simple text file doctest """ testdir.makeconftest( """ import pytest import contextlib @pytest.fixture(autouse=True, scope="{scope}") def add_contextlib(doctest_namespace): doctest_namespace['cl'] = contextlib """.format( scope=scope ) ) p = testdir.maketxtfile( """ >>> print(cl.__name__) contextlib """ ) > reprec = testdir.inline_run(p) ../../../../pytest-3.10.1/testing/test_doctest.py:1093: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________ TestDoctestNamespaceFixture.test_namespace_doctestfile[class] _________ self = testdir = scope = 'class' @pytest.mark.parametrize("scope", SCOPES) def test_namespace_doctestfile(self, testdir, scope): """ Check that inserting something into the namespace works in a simple text file doctest """ testdir.makeconftest( """ import pytest import contextlib @pytest.fixture(autouse=True, scope="{scope}") def add_contextlib(doctest_namespace): doctest_namespace['cl'] = contextlib """.format( scope=scope ) ) p = testdir.maketxtfile( """ >>> print(cl.__name__) contextlib """ ) > reprec = testdir.inline_run(p) ../../../../pytest-3.10.1/testing/test_doctest.py:1093: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______ TestDoctestNamespaceFixture.test_namespace_doctestfile[function] _______ self = testdir = scope = 'function' @pytest.mark.parametrize("scope", SCOPES) def test_namespace_doctestfile(self, testdir, scope): """ Check that inserting something into the namespace works in a simple text file doctest """ testdir.makeconftest( """ import pytest import contextlib @pytest.fixture(autouse=True, scope="{scope}") def add_contextlib(doctest_namespace): doctest_namespace['cl'] = contextlib """.format( scope=scope ) ) p = testdir.maketxtfile( """ >>> print(cl.__name__) contextlib """ ) > reprec = testdir.inline_run(p) ../../../../pytest-3.10.1/testing/test_doctest.py:1093: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________ TestDoctestNamespaceFixture.test_namespace_pyfile[module] ___________ self = testdir = scope = 'module' @pytest.mark.parametrize("scope", SCOPES) def test_namespace_pyfile(self, testdir, scope): """ Check that inserting something into the namespace works in a simple Python file docstring doctest """ testdir.makeconftest( """ import pytest import contextlib @pytest.fixture(autouse=True, scope="{scope}") def add_contextlib(doctest_namespace): doctest_namespace['cl'] = contextlib """.format( scope=scope ) ) p = testdir.makepyfile( """ def foo(): ''' >>> print(cl.__name__) contextlib ''' """ ) > reprec = testdir.inline_run(p, "--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:1123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________ TestDoctestNamespaceFixture.test_namespace_pyfile[session] __________ self = testdir = scope = 'session' @pytest.mark.parametrize("scope", SCOPES) def test_namespace_pyfile(self, testdir, scope): """ Check that inserting something into the namespace works in a simple Python file docstring doctest """ testdir.makeconftest( """ import pytest import contextlib @pytest.fixture(autouse=True, scope="{scope}") def add_contextlib(doctest_namespace): doctest_namespace['cl'] = contextlib """.format( scope=scope ) ) p = testdir.makepyfile( """ def foo(): ''' >>> print(cl.__name__) contextlib ''' """ ) > reprec = testdir.inline_run(p, "--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:1123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________ TestDoctestNamespaceFixture.test_namespace_pyfile[class] ___________ self = testdir = scope = 'class' @pytest.mark.parametrize("scope", SCOPES) def test_namespace_pyfile(self, testdir, scope): """ Check that inserting something into the namespace works in a simple Python file docstring doctest """ testdir.makeconftest( """ import pytest import contextlib @pytest.fixture(autouse=True, scope="{scope}") def add_contextlib(doctest_namespace): doctest_namespace['cl'] = contextlib """.format( scope=scope ) ) p = testdir.makepyfile( """ def foo(): ''' >>> print(cl.__name__) contextlib ''' """ ) > reprec = testdir.inline_run(p, "--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:1123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________ TestDoctestNamespaceFixture.test_namespace_pyfile[function] __________ self = testdir = scope = 'function' @pytest.mark.parametrize("scope", SCOPES) def test_namespace_pyfile(self, testdir, scope): """ Check that inserting something into the namespace works in a simple Python file docstring doctest """ testdir.makeconftest( """ import pytest import contextlib @pytest.fixture(autouse=True, scope="{scope}") def add_contextlib(doctest_namespace): doctest_namespace['cl'] = contextlib """.format( scope=scope ) ) p = testdir.makepyfile( """ def foo(): ''' >>> print(cl.__name__) contextlib ''' """ ) > reprec = testdir.inline_run(p, "--doctest-modules") ../../../../pytest-3.10.1/testing/test_doctest.py:1123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________ TestDoctestReportingOption.test_doctest_report_udiff[udiff] __________ self = testdir = format = 'udiff' @pytest.mark.parametrize("format", ["udiff", "UDIFF", "uDiFf"]) def test_doctest_report_udiff(self, testdir, format): result = self._run_doctest_report(testdir, format) result.stdout.fnmatch_lines( > [" 0 1 4", " -1 2 4", " +1 2 5", " 2 3 6"] ) E Failed: nomatch: ' 0 1 4' E and: '' E remains unmatched: ' 0 1 4' ../../../../pytest-3.10.1/testing/test_doctest.py:1151: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________ TestDoctestReportingOption.test_doctest_report_udiff[UDIFF] __________ self = testdir = format = 'UDIFF' @pytest.mark.parametrize("format", ["udiff", "UDIFF", "uDiFf"]) def test_doctest_report_udiff(self, testdir, format): result = self._run_doctest_report(testdir, format) result.stdout.fnmatch_lines( > [" 0 1 4", " -1 2 4", " +1 2 5", " 2 3 6"] ) E Failed: nomatch: ' 0 1 4' E and: '' E remains unmatched: ' 0 1 4' ../../../../pytest-3.10.1/testing/test_doctest.py:1151: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________ TestDoctestReportingOption.test_doctest_report_udiff[uDiFf] __________ self = testdir = format = 'uDiFf' @pytest.mark.parametrize("format", ["udiff", "UDIFF", "uDiFf"]) def test_doctest_report_udiff(self, testdir, format): result = self._run_doctest_report(testdir, format) result.stdout.fnmatch_lines( > [" 0 1 4", " -1 2 4", " +1 2 5", " 2 3 6"] ) E Failed: nomatch: ' 0 1 4' E and: '' E remains unmatched: ' 0 1 4' ../../../../pytest-3.10.1/testing/test_doctest.py:1151: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestDoctestReportingOption.test_doctest_report_cdiff _____________ self = testdir = def test_doctest_report_cdiff(self, testdir): result = self._run_doctest_report(testdir, "cdiff") result.stdout.fnmatch_lines( [ " a b", " 0 1 4", " ! 1 2 4", " 2 3 6", " --- 1,4 ----", " a b", " 0 1 4", " ! 1 2 5", > " 2 3 6", ] ) E Failed: nomatch: ' a b' E and: '' E remains unmatched: ' a b' ../../../../pytest-3.10.1/testing/test_doctest.py:1166: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestDoctestReportingOption.test_doctest_report_ndiff _____________ self = testdir = def test_doctest_report_ndiff(self, testdir): result = self._run_doctest_report(testdir, "ndiff") result.stdout.fnmatch_lines( [ " a b", " 0 1 4", " - 1 2 4", " ? ^", " + 1 2 5", " ? ^", > " 2 3 6", ] ) E Failed: nomatch: ' a b' E and: '' E remains unmatched: ' a b' ../../../../pytest-3.10.1/testing/test_doctest.py:1180: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestDoctestReportingOption.test_doctest_report_none_or_only_first_failure[none] self = testdir = format = 'none' @pytest.mark.parametrize("format", ["none", "only_first_failure"]) def test_doctest_report_none_or_only_first_failure(self, testdir, format): result = self._run_doctest_report(testdir, format) result.stdout.fnmatch_lines( [ "Expected:", " a b", " 0 1 4", " 1 2 4", " 2 3 6", "Got:", " a b", " 0 1 4", " 1 2 5", > " 2 3 6", ] ) E Failed: nomatch: 'Expected:' E and: '' E remains unmatched: 'Expected:' ../../../../pytest-3.10.1/testing/test_doctest.py:1198: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestDoctestReportingOption.test_doctest_report_none_or_only_first_failure[only_first_failure] self = testdir = format = 'only_first_failure' @pytest.mark.parametrize("format", ["none", "only_first_failure"]) def test_doctest_report_none_or_only_first_failure(self, testdir, format): result = self._run_doctest_report(testdir, format) result.stdout.fnmatch_lines( [ "Expected:", " a b", " 0 1 4", " 1 2 4", " 2 3 6", "Got:", " a b", " 0 1 4", " 1 2 5", > " 2 3 6", ] ) E Failed: nomatch: 'Expected:' E and: '' E remains unmatched: 'Expected:' ../../../../pytest-3.10.1/testing/test_doctest.py:1198: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________________ test_version _________________________________ testdir = pytestconfig = <_pytest.config.Config object at 0x7f5c66a2f690> def test_version(testdir, pytestconfig): result = testdir.runpytest("--version") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c62b577d0>.ret ../../../../pytest-3.10.1/testing/test_helpconfig.py:11: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________________ test_help ___________________________________ testdir = def test_help(testdir): result = testdir.runpytest("--help") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c626afe50>.ret ../../../../pytest-3.10.1/testing/test_helpconfig.py:22: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ test_hookvalidation_unknown __________________________ testdir = def test_hookvalidation_unknown(testdir): testdir.makeconftest( """ def pytest_hello(xyz): pass """ ) result = testdir.runpytest() assert result.ret != 0 > result.stdout.fnmatch_lines(["*unknown hook*pytest_hello*"]) E Failed: nomatch: '*unknown hook*pytest_hello*' E and: '' E remains unmatched: '*unknown hook*pytest_hello*' ../../../../pytest-3.10.1/testing/test_helpconfig.py:43: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ test_hookvalidation_optional _________________________ testdir = def test_hookvalidation_optional(testdir): testdir.makeconftest( """ import pytest @pytest.hookimpl(optionalhook=True) def pytest_hello(xyz): pass """ ) result = testdir.runpytest() > assert result.ret == EXIT_NOTESTSCOLLECTED E assert 3 == 5 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c627325d0>.ret ../../../../pytest-3.10.1/testing/test_helpconfig.py:56: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________________ test_traceconfig _______________________________ testdir = def test_traceconfig(testdir): result = testdir.runpytest("--traceconfig") > result.stdout.fnmatch_lines(["*using*pytest*py*", "*active plugins*"]) E Failed: nomatch: '*using*pytest*py*' E and: '' E remains unmatched: '*using*pytest*py*' ../../../../pytest-3.10.1/testing/test_helpconfig.py:61: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ TestPython.test_summing_simple ________________________ self = testdir = def test_summing_simple(self, testdir): testdir.makepyfile( """ import pytest def test_pass(): pass def test_fail(): assert 0 def test_skip(): pytest.skip("") @pytest.mark.xfail def test_xfail(): assert 0 @pytest.mark.xfail def test_xpass(): assert 1 """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:107: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_summing_simple0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_summing_simple0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ TestPython.test_summing_simple_with_errors __________________ self = testdir = def test_summing_simple_with_errors(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture def fixture(): raise Exception() def test_pass(): pass def test_fail(): assert 0 def test_error(fixture): pass @pytest.mark.xfail def test_xfail(): assert False @pytest.mark.xfail(strict=True) def test_xpass(): assert True """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:133: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_summing_simple_with_errors0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_summing_simple_with_errors0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ TestPython.test_timing_function ________________________ self = testdir = def test_timing_function(self, testdir): testdir.makepyfile( """ import time, pytest def setup_module(): time.sleep(0.01) def teardown_module(): time.sleep(0.01) def test_sleep(): time.sleep(0.01) """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_timing_function0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_timing_function0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ TestPython.test_setup_error __________________________ self = testdir = def test_setup_error(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture def arg(request): raise ValueError() def test_function(arg): pass """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:168: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_setup_error0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_setup_error0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ TestPython.test_teardown_error ________________________ self = testdir = def test_teardown_error(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture def arg(): yield raise ValueError() def test_function(arg): pass """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:196: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_teardown_error0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_teardown_error0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestPython.test_call_failure_teardown_error __________________ self = testdir = def test_call_failure_teardown_error(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture def arg(): yield raise Exception("Teardown Exception") def test_function(arg): raise Exception("Call Exception") """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:223: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_call_failure_teardown_error0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_call_failure_teardown_error0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ TestPython.test_skip_contains_name_reason ___________________ self = testdir = def test_skip_contains_name_reason(self, testdir): testdir.makepyfile( """ import pytest def test_skip(): pytest.skip("hello23") """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:243: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_skip_contains_name_reason0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_skip_contains_name_reason0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestPython.test_mark_skip_contains_name_reason ________________ self = testdir = def test_mark_skip_contains_name_reason(self, testdir): testdir.makepyfile( """ import pytest @pytest.mark.skip(reason="hello24") def test_skip(): assert True """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:266: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_mark_skip_contains_name_reason0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_mark_skip_contains_name_reason0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestPython.test_mark_skipif_contains_name_reason _______________ self = testdir = def test_mark_skipif_contains_name_reason(self, testdir): testdir.makepyfile( """ import pytest GLOBAL_CONDITION = True @pytest.mark.skipif(GLOBAL_CONDITION, reason="hello25") def test_skip(): assert True """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:290: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_mark_skipif_contains_name_reason0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_mark_skipif_contains_name_reason0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestPython.test_mark_skip_doesnt_capture_output ________________ self = testdir = def test_mark_skip_doesnt_capture_output(self, testdir): testdir.makepyfile( """ import pytest @pytest.mark.skip(reason="foo") def test_skip(): print("bar!") """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:313: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_mark_skip_doesnt_capture_output0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_mark_skip_doesnt_capture_output0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ TestPython.test_classname_instance ______________________ self = testdir = def test_classname_instance(self, testdir): testdir.makepyfile( """ class TestClass(object): def test_method(self): assert 0 """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:326: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_classname_instance0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_classname_instance0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestPython.test_classname_nested_dir _____________________ self = testdir = def test_classname_nested_dir(self, testdir): p = testdir.tmpdir.ensure("sub", "test_hello.py") p.write("def test_func(): 0/0") > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_classname_nested_dir0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_classname_nested_dir0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ TestPython.test_internal_error ________________________ self = testdir = def test_internal_error(self, testdir): testdir.makeconftest("def pytest_runtest_protocol(): 0 / 0") testdir.makepyfile("def test_function(): pass") > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:356: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_internal_error0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_internal_error0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestPython.test_failure_function[no] _____________________ self = testdir = junit_logging = 'no' @pytest.mark.parametrize("junit_logging", ["no", "system-out", "system-err"]) def test_failure_function(self, testdir, junit_logging): testdir.makepyfile( """ import logging import sys def test_fail(): print ("hello-stdout") sys.stderr.write("hello-stderr\\n") logging.info('info msg') logging.warning('warning msg') raise ValueError(42) """ ) > result, dom = runandparse(testdir, "-o", "junit_logging=%s" % junit_logging) ../../../../pytest-3.10.1/testing/test_junitxml.py:382: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_failure_function0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_failure_function0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestPython.test_failure_function[system-out] _________________ self = testdir = junit_logging = 'system-out' @pytest.mark.parametrize("junit_logging", ["no", "system-out", "system-err"]) def test_failure_function(self, testdir, junit_logging): testdir.makepyfile( """ import logging import sys def test_fail(): print ("hello-stdout") sys.stderr.write("hello-stderr\\n") logging.info('info msg') logging.warning('warning msg') raise ValueError(42) """ ) > result, dom = runandparse(testdir, "-o", "junit_logging=%s" % junit_logging) ../../../../pytest-3.10.1/testing/test_junitxml.py:382: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_failure_function1/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_failure_function1/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestPython.test_failure_function[system-err] _________________ self = testdir = junit_logging = 'system-err' @pytest.mark.parametrize("junit_logging", ["no", "system-out", "system-err"]) def test_failure_function(self, testdir, junit_logging): testdir.makepyfile( """ import logging import sys def test_fail(): print ("hello-stdout") sys.stderr.write("hello-stderr\\n") logging.info('info msg') logging.warning('warning msg') raise ValueError(42) """ ) > result, dom = runandparse(testdir, "-o", "junit_logging=%s" % junit_logging) ../../../../pytest-3.10.1/testing/test_junitxml.py:382: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_failure_function2/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_failure_function2/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ TestPython.test_failure_verbose_message ____________________ self = testdir = def test_failure_verbose_message(self, testdir): testdir.makepyfile( """ import sys def test_fail(): assert 0, "An error" """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:424: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_failure_verbose_message0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_failure_verbose_message0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ TestPython.test_failure_escape ________________________ self = testdir = def test_failure_escape(self, testdir): testdir.makepyfile( """ import pytest @pytest.mark.parametrize('arg1', "<&'", ids="<&'") def test_func(arg1): print(arg1) assert 0 """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:440: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_failure_escape0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_failure_escape0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ TestPython.test_junit_prefixing ________________________ self = testdir = def test_junit_prefixing(self, testdir): testdir.makepyfile( """ def test_func(): assert 0 class TestHello(object): def test_hello(self): pass """ ) > result, dom = runandparse(testdir, "--junitprefix=xyz") ../../../../pytest-3.10.1/testing/test_junitxml.py:468: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_junit_prefixing0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_junit_prefixing0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ TestPython.test_xfailure_function _______________________ self = testdir = def test_xfailure_function(self, testdir): testdir.makepyfile( """ import pytest def test_xfail(): pytest.xfail("42") """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:495: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_xfailure_function0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_xfailure_function0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ TestPython.test_xfail_captures_output_once __________________ self = testdir = def test_xfail_captures_output_once(self, testdir): testdir.makepyfile( """ import sys import pytest @pytest.mark.xfail() def test_fail(): sys.stdout.write('XFAIL This is stdout') sys.stderr.write('XFAIL This is stderr') assert 0 """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:523: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_xfail_captures_output_once0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_xfail_captures_output_once0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ TestPython.test_xfailure_xpass ________________________ self = testdir = def test_xfailure_xpass(self, testdir): testdir.makepyfile( """ import pytest @pytest.mark.xfail def test_xpass(): pass """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:538: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_xfailure_xpass0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_xfailure_xpass0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ TestPython.test_xfailure_xpass_strict _____________________ self = testdir = def test_xfailure_xpass_strict(self, testdir): testdir.makepyfile( """ import pytest @pytest.mark.xfail(strict=True, reason="This needs to fail!") def test_xpass(): pass """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:559: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_xfailure_xpass_strict0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_xfailure_xpass_strict0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ TestPython.test_collect_error _________________________ self = testdir = def test_collect_error(self, testdir): testdir.makepyfile("syntax error") > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:575: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_collect_error0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_collect_error0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ TestPython.test_unicode ____________________________ self = testdir = def test_unicode(self, testdir): value = "hx\xc4\x85\xc4\x87\n" testdir.makepyfile( """ # coding: latin1 def test_hello(): print (%r) assert 0 """ % value ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:597: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_unicode0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_unicode0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ TestPython.test_assertion_binchars ______________________ self = testdir = def test_assertion_binchars(self, testdir): """this test did fail when the escaping wasnt strict""" testdir.makepyfile( """ M1 = '\x01\x02\x03\x04' M2 = '\x01\x02\x03\x05' def test_str_compare(): assert M1 == M2 """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:616: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_assertion_binchars0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_assertion_binchars0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestPython.test_pass_captures_stdout _____________________ self = testdir = def test_pass_captures_stdout(self, testdir): testdir.makepyfile( """ def test_pass(): print('hello-stdout') """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:626: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_pass_captures_stdout0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_pass_captures_stdout0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestPython.test_pass_captures_stderr _____________________ self = testdir = def test_pass_captures_stderr(self, testdir): testdir.makepyfile( """ import sys def test_pass(): sys.stderr.write('hello-stderr') """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:640: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_pass_captures_stderr0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_pass_captures_stderr0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestPython.test_setup_error_captures_stdout __________________ self = testdir = def test_setup_error_captures_stdout(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture def arg(request): print('hello-stdout') raise ValueError() def test_function(arg): pass """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:659: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_setup_error_captures_stdout0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_setup_error_captures_stdout0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestPython.test_setup_error_captures_stderr __________________ self = testdir = def test_setup_error_captures_stderr(self, testdir): testdir.makepyfile( """ import sys import pytest @pytest.fixture def arg(request): sys.stderr.write('hello-stderr') raise ValueError() def test_function(arg): pass """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:679: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_setup_error_captures_stderr0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_setup_error_captures_stderr0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestPython.test_avoid_double_stdout ______________________ self = testdir = def test_avoid_double_stdout(self, testdir): testdir.makepyfile( """ import sys import pytest @pytest.fixture def arg(request): yield sys.stdout.write('hello-stdout teardown') raise ValueError() def test_function(arg): sys.stdout.write('hello-stdout call') """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:700: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_avoid_double_stdout0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_avoid_double_stdout0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ TestNonPython.test_summing_simple _______________________ self = testdir = def test_summing_simple(self, testdir): testdir.makeconftest( """ import pytest def pytest_collect_file(path, parent): if path.ext == ".xyz": return MyItem(path, parent) class MyItem(pytest.Item): def __init__(self, path, parent): super(MyItem, self).__init__(path.basename, parent) self.fspath = path def runtest(self): raise ValueError(42) def repr_failure(self, excinfo): return "custom item runtest failed" """ ) testdir.tmpdir.join("myfile.xyz").write("hello") > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:761: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_summing_simple1/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_summing_simple1/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________________ test_nullbyte _________________________________ self = , func = args = ('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_nullbyte0/junit.xml', 'r') kwargs = {}, __tracebackhide__ = False, cls = value = FileNotFoundError(2, 'No such file or directory') tb = , errno = 2 def checked_call(self, func, *args, **kwargs): """ call a function and raise an errno-exception if applicable. """ __tracebackhide__ = True try: > return func(*args, **kwargs) E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_nullbyte0/junit.xml' /usr/share/python3.7/site-packages/py/_error.py:66: FileNotFoundError During handling of the above exception, another exception occurred: testdir = def test_nullbyte(testdir): # A null byte can not occur in XML (see section 2.2 of the spec) testdir.makepyfile( """ import sys def test_print_nullbyte(): sys.stdout.write('Here the null -->' + chr(0) + '<--') sys.stdout.write('In repr form -->' + repr(chr(0)) + '<--') assert False """ ) xmlf = testdir.tmpdir.join("junit.xml") testdir.runpytest("--junitxml=%s" % xmlf) > text = xmlf.read() ../../../../pytest-3.10.1/testing/test_junitxml.py:785: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/share/python3.7/site-packages/py/_path/common.py:170: in read with self.open(mode) as f: /usr/share/python3.7/site-packages/py/_path/local.py:361: in open return py.error.checked_call(open, self.strpath, mode) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , func = args = ('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_nullbyte0/junit.xml', 'r') kwargs = {}, __tracebackhide__ = False, cls = value = FileNotFoundError(2, 'No such file or directory') tb = , errno = 2 def checked_call(self, func, *args, **kwargs): """ call a function and raise an errno-exception if applicable. """ __tracebackhide__ = True try: return func(*args, **kwargs) except self.Error: raise except (OSError, EnvironmentError): cls, value, tb = sys.exc_info() if not hasattr(value, 'errno'): raise __tracebackhide__ = False errno = value.errno try: if not isinstance(value, WindowsError): raise NameError except NameError: # we are not on Windows, or we got a proper OSError cls = self._geterrnoclass(errno) else: try: cls = self._geterrnoclass(_winerrnomap[errno]) except KeyError: raise value > raise cls("%s%r" % (func.__name__, args)) E py.error.ENOENT: [No such file or directory]: open('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_nullbyte0/junit.xml', 'r') /usr/share/python3.7/site-packages/py/_error.py:86: ENOENT ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________________ test_nullbyte_replace _____________________________ self = , func = args = ('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_nullbyte_replace0/junit.xml', 'r') kwargs = {}, __tracebackhide__ = False, cls = value = FileNotFoundError(2, 'No such file or directory') tb = , errno = 2 def checked_call(self, func, *args, **kwargs): """ call a function and raise an errno-exception if applicable. """ __tracebackhide__ = True try: > return func(*args, **kwargs) E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_nullbyte_replace0/junit.xml' /usr/share/python3.7/site-packages/py/_error.py:66: FileNotFoundError During handling of the above exception, another exception occurred: testdir = def test_nullbyte_replace(testdir): # Check if the null byte gets replaced testdir.makepyfile( """ import sys def test_print_nullbyte(): sys.stdout.write('Here the null -->' + chr(0) + '<--') sys.stdout.write('In repr form -->' + repr(chr(0)) + '<--') assert False """ ) xmlf = testdir.tmpdir.join("junit.xml") testdir.runpytest("--junitxml=%s" % xmlf) > text = xmlf.read() ../../../../pytest-3.10.1/testing/test_junitxml.py:803: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/share/python3.7/site-packages/py/_path/common.py:170: in read with self.open(mode) as f: /usr/share/python3.7/site-packages/py/_path/local.py:361: in open return py.error.checked_call(open, self.strpath, mode) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , func = args = ('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_nullbyte_replace0/junit.xml', 'r') kwargs = {}, __tracebackhide__ = False, cls = value = FileNotFoundError(2, 'No such file or directory') tb = , errno = 2 def checked_call(self, func, *args, **kwargs): """ call a function and raise an errno-exception if applicable. """ __tracebackhide__ = True try: return func(*args, **kwargs) except self.Error: raise except (OSError, EnvironmentError): cls, value, tb = sys.exc_info() if not hasattr(value, 'errno'): raise __tracebackhide__ = False errno = value.errno try: if not isinstance(value, WindowsError): raise NameError except NameError: # we are not on Windows, or we got a proper OSError cls = self._geterrnoclass(errno) else: try: cls = self._geterrnoclass(_winerrnomap[errno]) except KeyError: raise value > raise cls("%s%r" % (func.__name__, args)) E py.error.ENOENT: [No such file or directory]: open('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_nullbyte_replace0/junit.xml', 'r') /usr/share/python3.7/site-packages/py/_error.py:86: ENOENT ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ test_logxml_changingdir ____________________________ testdir = def test_logxml_changingdir(testdir): testdir.makepyfile( """ def test_func(): import os os.chdir("a") """ ) testdir.tmpdir.mkdir("a") result = testdir.runpytest("--junitxml=a/x.xml") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c62835450>.ret ../../../../pytest-3.10.1/testing/test_junitxml.py:874: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________________ test_logxml_makedir ______________________________ testdir = def test_logxml_makedir(testdir): """--junitxml should automatically create directories for the xml file""" testdir.makepyfile( """ def test_pass(): pass """ ) result = testdir.runpytest("--junitxml=path/to/results.xml") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c62bb1710>.ret ../../../../pytest-3.10.1/testing/test_junitxml.py:887: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ test_escaped_parametrized_names_xml ______________________ testdir = def test_escaped_parametrized_names_xml(testdir): testdir.makepyfile( """ import pytest @pytest.mark.parametrize('char', [u"\\x00"]) def test_func(char): assert char """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_escaped_parametrized_names_xml0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_escaped_parametrized_names_xml0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ test_double_colon_split_function_issue469 ___________________ testdir = def test_double_colon_split_function_issue469(testdir): testdir.makepyfile( """ import pytest @pytest.mark.parametrize('param', ["double::colon"]) def test_func(param): pass """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:921: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_double_colon_split_function_issue4690/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_double_colon_split_function_issue4690/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ test_double_colon_split_method_issue469 ____________________ testdir = def test_double_colon_split_method_issue469(testdir): testdir.makepyfile( """ import pytest class TestClass(object): @pytest.mark.parametrize('param', ["double::colon"]) def test_func(self, param): pass """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:938: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_double_colon_split_method_issue4690/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_double_colon_split_method_issue4690/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________________ test_record_property _____________________________ testdir = def test_record_property(testdir): testdir.makepyfile( """ import pytest @pytest.fixture def other(record_property): record_property("bar", 1) def test_record(record_property, other): record_property("foo", "<1"); """ ) > result, dom = runandparse(testdir, "-rwv") ../../../../pytest-3.10.1/testing/test_junitxml.py:986: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_record_property0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_record_property0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ test_record_property_same_name ________________________ testdir = def test_record_property_same_name(testdir): testdir.makepyfile( """ def test_record_with_same_name(record_property): record_property("foo", "bar") record_property("foo", "baz") """ ) > result, dom = runandparse(testdir, "-rw") ../../../../pytest-3.10.1/testing/test_junitxml.py:1003: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_record_property_same_name0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_record_property_same_name0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________________ test_runs_twice ________________________________ testdir = def test_runs_twice(testdir): f = testdir.makepyfile( """ def test_pass(): pass """ ) > result, dom = runandparse(testdir, f, f) ../../../../pytest-3.10.1/testing/test_junitxml.py:1067: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_runs_twice0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_runs_twice0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ test_fancy_items_regression __________________________ testdir = def test_fancy_items_regression(testdir): # issue 1259 testdir.makeconftest( """ import pytest class FunItem(pytest.Item): def runtest(self): pass class NoFunItem(pytest.Item): def runtest(self): pass class FunCollector(pytest.File): def collect(self): return [ FunItem('a', self), NoFunItem('a', self), NoFunItem('b', self), ] def pytest_collect_file(path, parent): if path.check(ext='.py'): return FunCollector(path, parent) """ ) testdir.makepyfile( """ def test_pass(): pass """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:1122: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_fancy_items_regression0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_fancy_items_regression0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ test_set_suite_name[my_suite] _________________________ testdir = suite_name = 'my_suite' @pytest.mark.parametrize("suite_name", ["my_suite", ""]) def test_set_suite_name(testdir, suite_name): if suite_name: testdir.makeini( """ [pytest] junit_suite_name={} """.format( suite_name ) ) expected = suite_name else: expected = "pytest" testdir.makepyfile( """ import pytest def test_func(): pass """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:1225: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_set_suite_name0/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_set_suite_name0/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________________ test_set_suite_name[] _____________________________ testdir = suite_name = '' @pytest.mark.parametrize("suite_name", ["my_suite", ""]) def test_set_suite_name(testdir, suite_name): if suite_name: testdir.makeini( """ [pytest] junit_suite_name={} """.format( suite_name ) ) expected = suite_name else: expected = "pytest" testdir.makepyfile( """ import pytest def test_func(): pass """ ) > result, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:1225: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_set_suite_name1/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_set_suite_name1/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ test_escaped_skipreason_issue3533 _______________________ testdir = def test_escaped_skipreason_issue3533(testdir): testdir.makepyfile( """ import pytest @pytest.mark.skip(reason='1 <> 2') def test_skip(): pass """ ) > _, dom = runandparse(testdir) ../../../../pytest-3.10.1/testing/test_junitxml.py:1240: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_junitxml.py:20: in runandparse xmldoc = minidom.parse(str(resultpath)) /usr/lib64/python3.7/xml/dom/minidom.py:1958: in parse return expatbuilder.parse(file) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ file = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_escaped_skipreason_issue35330/junit.xml' namespaces = True def parse(file, namespaces=True): """Parse a document, returning the resulting Document node. 'file' may be either a file name or an open file object. """ if namespaces: builder = ExpatBuilderNS() else: builder = ExpatBuilder() if isinstance(file, str): > with open(file, 'rb') as fp: E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_escaped_skipreason_issue35330/junit.xml' /usr/lib64/python3.7/xml/dom/expatbuilder.py:910: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ test_marked_class_run_twice __________________________ testdir = request = > def test_marked_class_run_twice(testdir, request): """Test fails file is run twice that contains marked class. See issue#683. """ py_file = testdir.makepyfile( """ import pytest @pytest.mark.parametrize('abc', [1, 2, 3]) class Test1(object): def test_1(self, abc): assert abc in [1, 2, 3] """ ) file_name = os.path.basename(py_file.strpath) > rec = testdir.inline_run(file_name, file_name) ../../../../pytest-3.10.1/testing/test_mark.py:173: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________________________ test_ini_markers _______________________________ testdir = def test_ini_markers(testdir): testdir.makeini( """ [pytest] markers = a1: this is a webtest marker a2: this is a smoke marker """ ) testdir.makepyfile( """ def test_markers(pytestconfig): markers = pytestconfig.getini("markers") print (markers) assert len(markers) >= 2 assert markers[0].startswith("a1:") assert markers[1].startswith("a2:") """ ) > rec = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_mark.py:196: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________________ test_markers_option ______________________________ testdir = def test_markers_option(testdir): testdir.makeini( """ [pytest] markers = a1: this is a webtest marker a1some: another marker nodescription """ ) result = testdir.runpytest("--markers") result.stdout.fnmatch_lines( > ["*a1*this is a webtest*", "*a1some*another marker", "*nodescription*"] ) E Failed: nomatch: '*a1*this is a webtest*' E and: '' E remains unmatched: '*a1*this is a webtest*' ../../../../pytest-3.10.1/testing/test_mark.py:212: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ test_ini_markers_whitespace __________________________ testdir = def test_ini_markers_whitespace(testdir): testdir.makeini( """ [pytest] markers = a1 : this is a whitespace marker """ ) testdir.makepyfile( """ import pytest @pytest.mark.a1 def test_markers(): assert True """ ) > rec = testdir.inline_run("--strict", "-m", "a1") ../../../../pytest-3.10.1/testing/test_mark.py:233: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________________ test_marker_without_description ________________________ testdir = def test_marker_without_description(testdir): testdir.makefile( ".cfg", setup=""" [tool:pytest] markers=slow """, ) testdir.makeconftest( """ import pytest pytest.mark.xfail('FAIL') """ ) ftdir = testdir.mkdir("ft1_dummy") testdir.tmpdir.join("conftest.py").move(ftdir.join("conftest.py")) rec = testdir.runpytest("--strict") > rec.assert_outcomes() ../../../../pytest-3.10.1/testing/test_mark.py:254: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c629c35d0> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ test_markers_option_with_plugin_in_current_dir ________________ testdir = def test_markers_option_with_plugin_in_current_dir(testdir): testdir.makeconftest('pytest_plugins = "flip_flop"') testdir.makepyfile( flip_flop="""\ def pytest_configure(config): config.addinivalue_line("markers", "flip:flop") def pytest_generate_tests(metafunc): try: mark = metafunc.function.flipper except AttributeError: return metafunc.parametrize("x", (10, 20))""" ) testdir.makepyfile( """\ import pytest @pytest.mark.flipper def test_example(x): assert x""" ) result = testdir.runpytest("--markers") > result.stdout.fnmatch_lines(["*flip*flop*"]) E Failed: nomatch: '*flip*flop*' E and: '' E remains unmatched: '*flip*flop*' ../../../../pytest-3.10.1/testing/test_mark.py:280: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ test_mark_on_pseudo_function _________________________ testdir = def test_mark_on_pseudo_function(testdir): testdir.makepyfile( """ import pytest @pytest.mark.r(lambda x: 0/0) def test_hello(): pass """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_mark.py:293: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ test_strict_prohibits_unregistered_markers __________________ testdir = def test_strict_prohibits_unregistered_markers(testdir): testdir.makepyfile( """ import pytest @pytest.mark.unregisteredmark def test_hello(): pass """ ) result = testdir.runpytest("--strict") assert result.ret != 0 > result.stdout.fnmatch_lines(["'unregisteredmark' not a registered marker"]) E Failed: nomatch: "'unregisteredmark' not a registered marker" E and: '' E remains unmatched: "'unregisteredmark' not a registered marker" ../../../../pytest-3.10.1/testing/test_mark.py:308: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ test_mark_option[spec0] ____________________________ spec = ('xyz', ('test_one',)) testdir = @pytest.mark.parametrize( "spec", [ ("xyz", ("test_one",)), ("xyz and xyz2", ()), ("xyz2", ("test_two",)), ("xyz or xyz2", ("test_one", "test_two")), ], ) def test_mark_option(spec, testdir): testdir.makepyfile( """ import pytest @pytest.mark.xyz def test_one(): pass @pytest.mark.xyz2 def test_two(): pass """ ) opt, passed_result = spec > rec = testdir.inline_run("-m", opt) ../../../../pytest-3.10.1/testing/test_mark.py:333: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________________ test_mark_option[spec1] ____________________________ spec = ('xyz and xyz2', ()) testdir = @pytest.mark.parametrize( "spec", [ ("xyz", ("test_one",)), ("xyz and xyz2", ()), ("xyz2", ("test_two",)), ("xyz or xyz2", ("test_one", "test_two")), ], ) def test_mark_option(spec, testdir): testdir.makepyfile( """ import pytest @pytest.mark.xyz def test_one(): pass @pytest.mark.xyz2 def test_two(): pass """ ) opt, passed_result = spec > rec = testdir.inline_run("-m", opt) ../../../../pytest-3.10.1/testing/test_mark.py:333: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________________ test_mark_option[spec2] ____________________________ spec = ('xyz2', ('test_two',)) testdir = @pytest.mark.parametrize( "spec", [ ("xyz", ("test_one",)), ("xyz and xyz2", ()), ("xyz2", ("test_two",)), ("xyz or xyz2", ("test_one", "test_two")), ], ) def test_mark_option(spec, testdir): testdir.makepyfile( """ import pytest @pytest.mark.xyz def test_one(): pass @pytest.mark.xyz2 def test_two(): pass """ ) opt, passed_result = spec > rec = testdir.inline_run("-m", opt) ../../../../pytest-3.10.1/testing/test_mark.py:333: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________________ test_mark_option[spec3] ____________________________ spec = ('xyz or xyz2', ('test_one', 'test_two')) testdir = @pytest.mark.parametrize( "spec", [ ("xyz", ("test_one",)), ("xyz and xyz2", ()), ("xyz2", ("test_two",)), ("xyz or xyz2", ("test_one", "test_two")), ], ) def test_mark_option(spec, testdir): testdir.makepyfile( """ import pytest @pytest.mark.xyz def test_one(): pass @pytest.mark.xyz2 def test_two(): pass """ ) opt, passed_result = spec > rec = testdir.inline_run("-m", opt) ../../../../pytest-3.10.1/testing/test_mark.py:333: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________________ test_mark_option_custom[spec0] ________________________ spec = ('interface', ('test_interface',)) testdir = @pytest.mark.parametrize( "spec", [("interface", ("test_interface",)), ("not interface", ("test_nointer",))] ) def test_mark_option_custom(spec, testdir): testdir.makeconftest( """ import pytest def pytest_collection_modifyitems(items): for item in items: if "interface" in item.nodeid: item.add_marker(pytest.mark.interface) """ ) testdir.makepyfile( """ def test_interface(): pass def test_nointer(): pass """ ) opt, passed_result = spec > rec = testdir.inline_run("-m", opt) ../../../../pytest-3.10.1/testing/test_mark.py:362: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________________ test_mark_option_custom[spec1] ________________________ spec = ('not interface', ('test_nointer',)) testdir = @pytest.mark.parametrize( "spec", [("interface", ("test_interface",)), ("not interface", ("test_nointer",))] ) def test_mark_option_custom(spec, testdir): testdir.makeconftest( """ import pytest def pytest_collection_modifyitems(items): for item in items: if "interface" in item.nodeid: item.add_marker(pytest.mark.interface) """ ) testdir.makepyfile( """ def test_interface(): pass def test_nointer(): pass """ ) opt, passed_result = spec > rec = testdir.inline_run("-m", opt) ../../../../pytest-3.10.1/testing/test_mark.py:362: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________ test_keyword_option_custom[spec0] _______________________ spec = ('interface', ('test_interface',)) testdir = @pytest.mark.parametrize( "spec", [ ("interface", ("test_interface",)), ("not interface", ("test_nointer", "test_pass")), ("pass", ("test_pass",)), ("not pass", ("test_interface", "test_nointer")), ], ) def test_keyword_option_custom(spec, testdir): testdir.makepyfile( """ def test_interface(): pass def test_nointer(): pass def test_pass(): pass """ ) opt, passed_result = spec > rec = testdir.inline_run("-k", opt) ../../../../pytest-3.10.1/testing/test_mark.py:390: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________ test_keyword_option_custom[spec1] _______________________ spec = ('not interface', ('test_nointer', 'test_pass')) testdir = @pytest.mark.parametrize( "spec", [ ("interface", ("test_interface",)), ("not interface", ("test_nointer", "test_pass")), ("pass", ("test_pass",)), ("not pass", ("test_interface", "test_nointer")), ], ) def test_keyword_option_custom(spec, testdir): testdir.makepyfile( """ def test_interface(): pass def test_nointer(): pass def test_pass(): pass """ ) opt, passed_result = spec > rec = testdir.inline_run("-k", opt) ../../../../pytest-3.10.1/testing/test_mark.py:390: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________ test_keyword_option_custom[spec2] _______________________ spec = ('pass', ('test_pass',)) testdir = @pytest.mark.parametrize( "spec", [ ("interface", ("test_interface",)), ("not interface", ("test_nointer", "test_pass")), ("pass", ("test_pass",)), ("not pass", ("test_interface", "test_nointer")), ], ) def test_keyword_option_custom(spec, testdir): testdir.makepyfile( """ def test_interface(): pass def test_nointer(): pass def test_pass(): pass """ ) opt, passed_result = spec > rec = testdir.inline_run("-k", opt) ../../../../pytest-3.10.1/testing/test_mark.py:390: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________ test_keyword_option_custom[spec3] _______________________ spec = ('not pass', ('test_interface', 'test_nointer')) testdir = @pytest.mark.parametrize( "spec", [ ("interface", ("test_interface",)), ("not interface", ("test_nointer", "test_pass")), ("pass", ("test_pass",)), ("not pass", ("test_interface", "test_nointer")), ], ) def test_keyword_option_custom(spec, testdir): testdir.makepyfile( """ def test_interface(): pass def test_nointer(): pass def test_pass(): pass """ ) opt, passed_result = spec > rec = testdir.inline_run("-k", opt) ../../../../pytest-3.10.1/testing/test_mark.py:390: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ test_keyword_option_parametrize[spec0] ____________________ spec = ('None', ('test_func[None]',)) testdir = @pytest.mark.parametrize( "spec", [ ("None", ("test_func[None]",)), ("1.3", ("test_func[1.3]",)), ("2-3", ("test_func[2-3]",)), ], ) def test_keyword_option_parametrize(spec, testdir): testdir.makepyfile( """ import pytest @pytest.mark.parametrize("arg", [None, 1.3, "2-3"]) def test_func(arg): pass """ ) opt, passed_result = spec > rec = testdir.inline_run("-k", opt) ../../../../pytest-3.10.1/testing/test_mark.py:415: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ test_keyword_option_parametrize[spec1] ____________________ spec = ('1.3', ('test_func[1.3]',)) testdir = @pytest.mark.parametrize( "spec", [ ("None", ("test_func[None]",)), ("1.3", ("test_func[1.3]",)), ("2-3", ("test_func[2-3]",)), ], ) def test_keyword_option_parametrize(spec, testdir): testdir.makepyfile( """ import pytest @pytest.mark.parametrize("arg", [None, 1.3, "2-3"]) def test_func(arg): pass """ ) opt, passed_result = spec > rec = testdir.inline_run("-k", opt) ../../../../pytest-3.10.1/testing/test_mark.py:415: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ test_keyword_option_parametrize[spec2] ____________________ spec = ('2-3', ('test_func[2-3]',)) testdir = @pytest.mark.parametrize( "spec", [ ("None", ("test_func[None]",)), ("1.3", ("test_func[1.3]",)), ("2-3", ("test_func[2-3]",)), ], ) def test_keyword_option_parametrize(spec, testdir): testdir.makepyfile( """ import pytest @pytest.mark.parametrize("arg", [None, 1.3, "2-3"]) def test_func(arg): pass """ ) opt, passed_result = spec > rec = testdir.inline_run("-k", opt) ../../../../pytest-3.10.1/testing/test_mark.py:415: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ test_keyword_option_wrong_arguments[spec0] __________________ spec = ('foo or import', "ERROR: Python keyword 'import' not accepted in expressions passed to '-k'") testdir = capsys = <_pytest.capture.CaptureFixture object at 0x7f5c623a3150> @pytest.mark.parametrize( "spec", [ ( "foo or import", "ERROR: Python keyword 'import' not accepted in expressions passed to '-k'", ), ("foo or", "ERROR: Wrong expression passed to '-k': foo or"), ], ) def test_keyword_option_wrong_arguments(spec, testdir, capsys): testdir.makepyfile( """ def test_func(arg): pass """ ) opt, expected_result = spec > testdir.inline_run("-k", opt) ../../../../pytest-3.10.1/testing/test_mark.py:440: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ test_keyword_option_wrong_arguments[spec1] __________________ spec = ('foo or', "ERROR: Wrong expression passed to '-k': foo or") testdir = capsys = <_pytest.capture.CaptureFixture object at 0x7f5c623eb350> @pytest.mark.parametrize( "spec", [ ( "foo or import", "ERROR: Python keyword 'import' not accepted in expressions passed to '-k'", ), ("foo or", "ERROR: Wrong expression passed to '-k': foo or"), ], ) def test_keyword_option_wrong_arguments(spec, testdir, capsys): testdir.makepyfile( """ def test_func(arg): pass """ ) opt, expected_result = spec > testdir.inline_run("-k", opt) ../../../../pytest-3.10.1/testing/test_mark.py:440: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ test_parametrized_collected_from_command_line _________________ testdir = def test_parametrized_collected_from_command_line(testdir): """Parametrized test not collected if test named specified in command line issue#649. """ py_file = testdir.makepyfile( """ import pytest @pytest.mark.parametrize("arg", [None, 1.3, "2-3"]) def test_func(arg): pass """ ) file_name = os.path.basename(py_file.strpath) > rec = testdir.inline_run(file_name + "::" + "test_func") ../../../../pytest-3.10.1/testing/test_mark.py:458: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ test_parametrized_collect_with_wrong_args ___________________ testdir = def test_parametrized_collect_with_wrong_args(testdir): """Test collect parametrized func with wrong number of args.""" py_file = testdir.makepyfile( """ import pytest @pytest.mark.parametrize('foo, bar', [(1, 2, 3)]) def test_func(foo, bar): pass """ ) result = testdir.runpytest(py_file) result.stdout.fnmatch_lines( [ > 'E ValueError: In "parametrize" the number of values ((1, 2, 3)) ' "must be equal to the number of names (['foo', 'bar'])" ] ) E Failed: nomatch: 'E ValueError: In "parametrize" the number of values ((1, 2, 3)) must be equal to the number of names ([\'foo\', \'bar\'])' E and: '' E remains unmatched: 'E ValueError: In "parametrize" the number of values ((1, 2, 3)) must be equal to the number of names ([\'foo\', \'bar\'])' ../../../../pytest-3.10.1/testing/test_mark.py:477: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ test_parametrized_with_kwargs _________________________ testdir = def test_parametrized_with_kwargs(testdir): """Test collect parametrized func with wrong number of args.""" py_file = testdir.makepyfile( """ import pytest @pytest.fixture(params=[1,2]) def a(request): return request.param @pytest.mark.parametrize(argnames='b', argvalues=[1, 2]) def test_func(a, b): pass """ ) result = testdir.runpytest(py_file) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c62705990>.ret ../../../../pytest-3.10.1/testing/test_mark.py:500: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ TestFunctional.test_mark_per_function _____________________ self = testdir = def test_mark_per_function(self, testdir): p = testdir.makepyfile( """ import pytest @pytest.mark.hello def test_hello(): assert hasattr(test_hello, 'hello') """ ) result = testdir.runpytest(p) > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/test_mark.py:514: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestFunctional.test_mark_per_module ______________________ self = testdir = def test_mark_per_module(self, testdir): item = testdir.getitem( """ import pytest pytestmark = pytest.mark.hello def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_mark.py:523: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ TestFunctional.test_marklist_per_class ____________________ self = testdir = def test_marklist_per_class(self, testdir): item = testdir.getitem( """ import pytest class TestClass(object): pytestmark = [pytest.mark.hello, pytest.mark.world] def test_func(self): assert TestClass.test_func.hello assert TestClass.test_func.world > """ ) ../../../../pytest-3.10.1/testing/test_mark.py:537: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestFunctional.test_marklist_per_module ____________________ self = testdir = def test_marklist_per_module(self, testdir): item = testdir.getitem( """ import pytest pytestmark = [pytest.mark.hello, pytest.mark.world] class TestClass(object): def test_func(self): assert TestClass.test_func.hello assert TestClass.test_func.world > """ ) ../../../../pytest-3.10.1/testing/test_mark.py:551: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________ TestFunctional.test_mark_per_class_decorator _________________ self = testdir = def test_mark_per_class_decorator(self, testdir): item = testdir.getitem( """ import pytest @pytest.mark.hello class TestClass(object): def test_func(self): assert TestClass.test_func.hello > """ ) ../../../../pytest-3.10.1/testing/test_mark.py:565: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________ TestFunctional.test_mark_per_class_decorator_plus_existing_dec ________ self = testdir = def test_mark_per_class_decorator_plus_existing_dec(self, testdir): item = testdir.getitem( """ import pytest @pytest.mark.hello class TestClass(object): pytestmark = pytest.mark.world def test_func(self): assert TestClass.test_func.hello assert TestClass.test_func.world > """ ) ../../../../pytest-3.10.1/testing/test_mark.py:580: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestFunctional.test_merging_markers ______________________ self = testdir = @ignore_markinfo def test_merging_markers(self, testdir): p = testdir.makepyfile( """ import pytest pytestmark = pytest.mark.hello("pos1", x=1, y=2) class TestClass(object): # classlevel overrides module level pytestmark = pytest.mark.hello(x=3) @pytest.mark.hello("pos0", z=4) def test_func(self): pass """ ) > items, rec = testdir.inline_genitems(p) ../../../../pytest-3.10.1/testing/test_mark.py:600: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestFunctional.test_merging_markers_deep ___________________ self = testdir = def test_merging_markers_deep(self, testdir): # issue 199 - propagate markers into nested classes p = testdir.makepyfile( """ import pytest class TestA(object): pytestmark = pytest.mark.a def test_b(self): assert True class TestC(object): # this one didnt get marked def test_d(self): assert True """ ) > items, rec = testdir.inline_genitems(p) ../../../../pytest-3.10.1/testing/test_mark.py:629: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____ TestFunctional.test_mark_decorator_subclass_does_not_propagate_to_base ____ self = testdir = def test_mark_decorator_subclass_does_not_propagate_to_base(self, testdir): p = testdir.makepyfile( """ import pytest @pytest.mark.a class Base(object): pass @pytest.mark.b class Test1(Base): def test_foo(self): pass class Test2(Base): def test_bar(self): pass """ ) > items, rec = testdir.inline_genitems(p) ../../../../pytest-3.10.1/testing/test_mark.py:650: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________ TestFunctional.test_mark_should_not_pass_to_siebling_class __________ self = testdir = @pytest.mark.issue568 def test_mark_should_not_pass_to_siebling_class(self, testdir): p = testdir.makepyfile( """ import pytest class TestBase(object): def test_foo(self): pass @pytest.mark.b class TestSub(TestBase): pass class TestOtherSub(TestBase): pass """ ) > items, rec = testdir.inline_genitems(p) ../../../../pytest-3.10.1/testing/test_mark.py:673: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________ TestFunctional.test_mark_decorator_baseclasses_merged _____________ self = testdir = def test_mark_decorator_baseclasses_merged(self, testdir): p = testdir.makepyfile( """ import pytest @pytest.mark.a class Base(object): pass @pytest.mark.b class Base2(Base): pass @pytest.mark.c class Test1(Base2): def test_foo(self): pass class Test2(Base2): @pytest.mark.d def test_bar(self): pass """ ) > items, rec = testdir.inline_genitems(p) ../../../../pytest-3.10.1/testing/test_mark.py:706: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________________ TestFunctional.test_mark_closest _______________________ self = testdir = def test_mark_closest(self, testdir): p = testdir.makepyfile( """ import pytest @pytest.mark.c(location="class") class Test: @pytest.mark.c(location="function") def test_has_own(): pass def test_has_inherited(): pass """ ) > items, rec = testdir.inline_genitems(p) ../../../../pytest-3.10.1/testing/test_mark.py:725: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ TestFunctional.test_mark_with_wrong_marker __________________ self = testdir = def test_mark_with_wrong_marker(self, testdir): reprec = testdir.inline_runsource( """ import pytest class pytestmark(object): pass def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_mark.py:739: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________ TestFunctional.test_mark_dynamically_in_funcarg ________________ self = testdir = def test_mark_dynamically_in_funcarg(self, testdir): testdir.makeconftest( """ import pytest @pytest.fixture def arg(request): request.applymarker(pytest.mark.hello) def pytest_terminal_summary(terminalreporter): values = terminalreporter.stats['passed'] terminalreporter._tw.line("keyword: %s" % values[0].keywords) """ ) testdir.makepyfile( """ def test_func(arg): pass """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["keyword: *hello*"]) E Failed: nomatch: 'keyword: *hello*' E and: '' E remains unmatched: 'keyword: *hello*' ../../../../pytest-3.10.1/testing/test_mark.py:764: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestFunctional.test_merging_markers_two_functions _______________ self = testdir = @ignore_markinfo def test_merging_markers_two_functions(self, testdir): p = testdir.makepyfile( """ import pytest @pytest.mark.hello("pos1", z=4) @pytest.mark.hello("pos0", z=3) def test_func(): pass """ ) > items, rec = testdir.inline_genitems(p) ../../../../pytest-3.10.1/testing/test_mark.py:777: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________ TestFunctional.test_no_marker_match_on_unmarked_names _____________ self = testdir = def test_no_marker_match_on_unmarked_names(self, testdir): p = testdir.makepyfile( """ import pytest @pytest.mark.shouldmatch def test_marked(): assert 1 def test_unmarked(): assert 1 """ ) > reprec = testdir.inline_run("-m", "test_unmarked", p) ../../../../pytest-3.10.1/testing/test_mark.py:798: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestFunctional.test_invalid_m_option _____________________ self = testdir = def test_invalid_m_option(self, testdir): testdir.makepyfile( """ def test_a(): pass """ ) result = testdir.runpytest("-m bogus/") result.stdout.fnmatch_lines( > ["INTERNALERROR> Marker expression must be valid Python!"] ) E Failed: nomatch: 'INTERNALERROR> Marker expression must be valid Python!' E and: '' E remains unmatched: 'INTERNALERROR> Marker expression must be valid Python!' ../../../../pytest-3.10.1/testing/test_mark.py:814: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ TestFunctional.test_keywords_at_node_level __________________ self = testdir = def test_keywords_at_node_level(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope="session", autouse=True) def some(request): request.keywords["hello"] = 42 assert "world" not in request.keywords @pytest.fixture(scope="function", autouse=True) def funcsetup(request): assert "world" in request.keywords assert "hello" in request.keywords @pytest.mark.world def test_function(): pass """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_mark.py:836: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ TestFunctional.test_keyword_added_for_session _________________ self = testdir = @ignore_markinfo def test_keyword_added_for_session(self, testdir): testdir.makeconftest( """ import pytest def pytest_collection_modifyitems(session): session.add_marker("mark1") session.add_marker(pytest.mark.mark2) session.add_marker(pytest.mark.mark3) pytest.raises(ValueError, lambda: session.add_marker(10)) """ ) testdir.makepyfile( """ def test_some(request): assert "mark1" in request.keywords assert "mark2" in request.keywords assert "mark3" in request.keywords assert 10 not in request.keywords marker = request.node.get_marker("mark1") assert marker.name == "mark1" assert marker.args == () assert marker.kwargs == {} """ ) > reprec = testdir.inline_run("-m", "mark1") ../../../../pytest-3.10.1/testing/test_mark.py:865: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestKeywordSelection.test_select_simple ____________________ self = testdir = def test_select_simple(self, testdir): file_test = testdir.makepyfile( """ def test_one(): assert 0 class TestClass(object): def test_method_one(self): assert 42 == 43 """ ) def check(keyword, name): reprec = testdir.inline_run("-s", "-k", keyword, file_test) passed, skipped, failed = reprec.listoutcomes() assert len(failed) == 1 assert failed[0].nodeid.split("::")[-1] == name assert len(reprec.getcalls("pytest_deselected")) == 1 for keyword in ["test_one", "est_on"]: > check(keyword, "test_one") ../../../../pytest-3.10.1/testing/test_mark.py:931: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_mark.py:924: in check reprec = testdir.inline_run("-s", "-k", keyword, file_test) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________ TestKeywordSelection.test_select_extra_keywords[xxx] _____________ self = testdir = keyword = 'xxx' @pytest.mark.parametrize( "keyword", [ "xxx", "xxx and test_2", "TestClass", "xxx and not test_1", "TestClass and test_2", "xxx and TestClass and test_2", ], ) def test_select_extra_keywords(self, testdir, keyword): p = testdir.makepyfile( test_select=""" def test_1(): pass class TestClass(object): def test_2(self): pass """ ) testdir.makepyfile( conftest=""" import pytest @pytest.hookimpl(hookwrapper=True) def pytest_pycollect_makeitem(name): outcome = yield if name == "TestClass": item = outcome.get_result() item.extra_keyword_matches.add("xxx") """ ) > reprec = testdir.inline_run(p.dirpath(), "-s", "-k", keyword) ../../../../pytest-3.10.1/testing/test_mark.py:966: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______ TestKeywordSelection.test_select_extra_keywords[xxx and test_2] ________ self = testdir = keyword = 'xxx and test_2' @pytest.mark.parametrize( "keyword", [ "xxx", "xxx and test_2", "TestClass", "xxx and not test_1", "TestClass and test_2", "xxx and TestClass and test_2", ], ) def test_select_extra_keywords(self, testdir, keyword): p = testdir.makepyfile( test_select=""" def test_1(): pass class TestClass(object): def test_2(self): pass """ ) testdir.makepyfile( conftest=""" import pytest @pytest.hookimpl(hookwrapper=True) def pytest_pycollect_makeitem(name): outcome = yield if name == "TestClass": item = outcome.get_result() item.extra_keyword_matches.add("xxx") """ ) > reprec = testdir.inline_run(p.dirpath(), "-s", "-k", keyword) ../../../../pytest-3.10.1/testing/test_mark.py:966: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________ TestKeywordSelection.test_select_extra_keywords[TestClass] __________ self = testdir = keyword = 'TestClass' @pytest.mark.parametrize( "keyword", [ "xxx", "xxx and test_2", "TestClass", "xxx and not test_1", "TestClass and test_2", "xxx and TestClass and test_2", ], ) def test_select_extra_keywords(self, testdir, keyword): p = testdir.makepyfile( test_select=""" def test_1(): pass class TestClass(object): def test_2(self): pass """ ) testdir.makepyfile( conftest=""" import pytest @pytest.hookimpl(hookwrapper=True) def pytest_pycollect_makeitem(name): outcome = yield if name == "TestClass": item = outcome.get_result() item.extra_keyword_matches.add("xxx") """ ) > reprec = testdir.inline_run(p.dirpath(), "-s", "-k", keyword) ../../../../pytest-3.10.1/testing/test_mark.py:966: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____ TestKeywordSelection.test_select_extra_keywords[xxx and not test_1] ______ self = testdir = keyword = 'xxx and not test_1' @pytest.mark.parametrize( "keyword", [ "xxx", "xxx and test_2", "TestClass", "xxx and not test_1", "TestClass and test_2", "xxx and TestClass and test_2", ], ) def test_select_extra_keywords(self, testdir, keyword): p = testdir.makepyfile( test_select=""" def test_1(): pass class TestClass(object): def test_2(self): pass """ ) testdir.makepyfile( conftest=""" import pytest @pytest.hookimpl(hookwrapper=True) def pytest_pycollect_makeitem(name): outcome = yield if name == "TestClass": item = outcome.get_result() item.extra_keyword_matches.add("xxx") """ ) > reprec = testdir.inline_run(p.dirpath(), "-s", "-k", keyword) ../../../../pytest-3.10.1/testing/test_mark.py:966: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____ TestKeywordSelection.test_select_extra_keywords[TestClass and test_2] _____ self = testdir = keyword = 'TestClass and test_2' @pytest.mark.parametrize( "keyword", [ "xxx", "xxx and test_2", "TestClass", "xxx and not test_1", "TestClass and test_2", "xxx and TestClass and test_2", ], ) def test_select_extra_keywords(self, testdir, keyword): p = testdir.makepyfile( test_select=""" def test_1(): pass class TestClass(object): def test_2(self): pass """ ) testdir.makepyfile( conftest=""" import pytest @pytest.hookimpl(hookwrapper=True) def pytest_pycollect_makeitem(name): outcome = yield if name == "TestClass": item = outcome.get_result() item.extra_keyword_matches.add("xxx") """ ) > reprec = testdir.inline_run(p.dirpath(), "-s", "-k", keyword) ../../../../pytest-3.10.1/testing/test_mark.py:966: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning TestKeywordSelection.test_select_extra_keywords[xxx and TestClass and test_2] _ self = testdir = keyword = 'xxx and TestClass and test_2' @pytest.mark.parametrize( "keyword", [ "xxx", "xxx and test_2", "TestClass", "xxx and not test_1", "TestClass and test_2", "xxx and TestClass and test_2", ], ) def test_select_extra_keywords(self, testdir, keyword): p = testdir.makepyfile( test_select=""" def test_1(): pass class TestClass(object): def test_2(self): pass """ ) testdir.makepyfile( conftest=""" import pytest @pytest.hookimpl(hookwrapper=True) def pytest_pycollect_makeitem(name): outcome = yield if name == "TestClass": item = outcome.get_result() item.extra_keyword_matches.add("xxx") """ ) > reprec = testdir.inline_run(p.dirpath(), "-s", "-k", keyword) ../../../../pytest-3.10.1/testing/test_mark.py:966: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestKeywordSelection.test_select_starton ___________________ self = testdir = def test_select_starton(self, testdir): threepass = testdir.makepyfile( test_threepass=""" def test_one(): assert 1 def test_two(): assert 1 def test_three(): assert 1 """ ) > reprec = testdir.inline_run("-k", "test_two:", threepass) ../../../../pytest-3.10.1/testing/test_mark.py:983: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestKeywordSelection.test_keyword_extra ____________________ self = testdir = def test_keyword_extra(self, testdir): p = testdir.makepyfile( """ def test_one(): assert 0 test_one.mykeyword = True """ ) > reprec = testdir.inline_run("-k", "mykeyword", p) ../../../../pytest-3.10.1/testing/test_mark.py:1000: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ TestKeywordSelection.test_no_magic_values ___________________ self = testdir = def test_no_magic_values(self, testdir): """Make sure the tests do not match on magic values, no double underscored values, like '__dict__', and no instance values, like '()'. """ p = testdir.makepyfile( """ def test_one(): assert 1 """ ) def assert_test_is_not_selected(keyword): reprec = testdir.inline_run("-k", keyword, p) passed, skipped, failed = reprec.countoutcomes() dlist = reprec.getcalls("pytest_deselected") assert passed + skipped + failed == 0 deselected_tests = dlist[0].items assert len(deselected_tests) == 1 > assert_test_is_not_selected("__") ../../../../pytest-3.10.1/testing/test_mark.py:1038: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_mark.py:1031: in assert_test_is_not_selected reprec = testdir.inline_run("-k", keyword, p) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ test_parameterset_for_parametrize_marks[None] _________________ testdir = mark = None @pytest.mark.parametrize("mark", [None, "", "skip", "xfail"]) def test_parameterset_for_parametrize_marks(testdir, mark): if mark is not None: testdir.makeini( """ [pytest] {}={} """.format( EMPTY_PARAMETERSET_OPTION, mark ) ) > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_mark.py:1118: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ test_parameterset_for_parametrize_marks[] ___________________ testdir = mark = '' @pytest.mark.parametrize("mark", [None, "", "skip", "xfail"]) def test_parameterset_for_parametrize_marks(testdir, mark): if mark is not None: testdir.makeini( """ [pytest] {}={} """.format( EMPTY_PARAMETERSET_OPTION, mark ) ) > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_mark.py:1118: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ test_parameterset_for_parametrize_marks[skip] _________________ testdir = mark = 'skip' @pytest.mark.parametrize("mark", [None, "", "skip", "xfail"]) def test_parameterset_for_parametrize_marks(testdir, mark): if mark is not None: testdir.makeini( """ [pytest] {}={} """.format( EMPTY_PARAMETERSET_OPTION, mark ) ) > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_mark.py:1118: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ test_parameterset_for_parametrize_marks[xfail] ________________ testdir = mark = 'xfail' @pytest.mark.parametrize("mark", [None, "", "skip", "xfail"]) def test_parameterset_for_parametrize_marks(testdir, mark): if mark is not None: testdir.makeini( """ [pytest] {}={} """.format( EMPTY_PARAMETERSET_OPTION, mark ) ) > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_mark.py:1118: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ test_parameterset_for_fail_at_collect _____________________ testdir = def test_parameterset_for_fail_at_collect(testdir): testdir.makeini( """ [pytest] {}=fail_at_collect """.format( EMPTY_PARAMETERSET_OPTION ) ) > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_mark.py:1142: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ test_parameterset_for_parametrize_bad_markname ________________ testdir = def test_parameterset_for_parametrize_bad_markname(testdir): with pytest.raises(pytest.UsageError): > test_parameterset_for_parametrize_marks(testdir, "bad") ../../../../pytest-3.10.1/testing/test_mark.py:1162: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_mark.py:1118: in test_parameterset_for_parametrize_marks config = testdir.parseconfig() ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________________ test_mark_expressions_no_smear ________________________ testdir = def test_mark_expressions_no_smear(testdir): testdir.makepyfile( """ import pytest class BaseTests(object): def test_something(self): pass @pytest.mark.FOO class TestFooClass(BaseTests): pass @pytest.mark.BAR class TestBarClass(BaseTests): pass """ ) > reprec = testdir.inline_run("-m", "FOO") ../../../../pytest-3.10.1/testing/test_mark.py:1184: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________________ test_monkeypatch_plugin ____________________________ testdir = def test_monkeypatch_plugin(testdir): reprec = testdir.inline_runsource( """ def test_method(monkeypatch): assert monkeypatch.__class__.__name__ == "MonkeyPatch" > """ ) ../../../../pytest-3.10.1/testing/test_monkeypatch.py:256: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________________ test_issue185_time_breaks ___________________________ testdir = def test_issue185_time_breaks(testdir): testdir.makepyfile( """ import time def test_m(monkeypatch): def f(): raise Exception monkeypatch.setattr(time, "time", f) """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( """ *1 passed* > """ ) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/test_monkeypatch.py:325: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________________ test_importerror _______________________________ testdir = def test_importerror(testdir): p = testdir.mkpydir("package") p.join("a.py").write( textwrap.dedent( """\ import doesnotexist x = 1 """ ) ) testdir.tmpdir.join("test_importerror.py").write( textwrap.dedent( """\ def test_importerror(monkeypatch): monkeypatch.setattr('package.a.x', 2) """ ) ) result = testdir.runpytest() result.stdout.fnmatch_lines( """ *import error in package.a: No module named {0}doesnotexist{0}* """.format( > "'" if sys.version_info > (3, 0) else "" ) ) E Failed: nomatch: "*import error in package.a: No module named 'doesnotexist'*" E and: '' E remains unmatched: "*import error in package.a: No module named 'doesnotexist'*" ../../../../pytest-3.10.1/testing/test_monkeypatch.py:353: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ test_std_warn_not_pytestwarning ________________________ testdir = def test_std_warn_not_pytestwarning(testdir): items = testdir.getitems( """ def test(): pass > """ ) ../../../../pytest-3.10.1/testing/test_nodes.py:30: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________________________ test_nose_setup ________________________________ testdir = def test_nose_setup(testdir): p = testdir.makepyfile( """ values = [] from nose.tools import with_setup @with_setup(lambda: values.append(1), lambda: values.append(2)) def test_hello(): assert values == [1] def test_world(): assert values == [1,2] test_hello.setup = lambda: values.append(1) test_hello.teardown = lambda: values.append(2) """ ) result = testdir.runpytest(p, "-p", "nose") > result.assert_outcomes(passed=2) ../../../../pytest-3.10.1/testing/test_nose.py:30: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c64a868d0> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________________ test_nose_setup_func _____________________________ testdir = def test_nose_setup_func(testdir): p = testdir.makepyfile( """ from nose.tools import with_setup values = [] def my_setup(): a = 1 values.append(a) def my_teardown(): b = 2 values.append(b) @with_setup(my_setup, my_teardown) def test_hello(): print (values) assert values == [1] def test_world(): print (values) assert values == [1,2] """ ) result = testdir.runpytest(p, "-p", "nose") > result.assert_outcomes(passed=2) ../../../../pytest-3.10.1/testing/test_nose.py:83: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c6247af10> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ test_nose_setup_func_failure _________________________ testdir = def test_nose_setup_func_failure(testdir): p = testdir.makepyfile( """ from nose.tools import with_setup values = [] my_setup = lambda x: 1 my_teardown = lambda x: 2 @with_setup(my_setup, my_teardown) def test_hello(): print (values) assert values == [1] def test_world(): print (values) assert values == [1,2] """ ) result = testdir.runpytest(p, "-p", "nose") > result.stdout.fnmatch_lines(["*TypeError: ()*"]) E Failed: nomatch: '*TypeError: ()*' E and: '' E remains unmatched: '*TypeError: ()*' ../../../../pytest-3.10.1/testing/test_nose.py:107: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ test_nose_setup_func_failure_2 ________________________ testdir = def test_nose_setup_func_failure_2(testdir): testdir.makepyfile( """ values = [] my_setup = 1 my_teardown = 2 def test_hello(): assert values == [] test_hello.setup = my_setup test_hello.teardown = my_teardown """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_nose.py:125: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________________ test_nose_setup_partial ____________________________ testdir = def test_nose_setup_partial(testdir): pytest.importorskip("functools") p = testdir.makepyfile( """ from functools import partial values = [] def my_setup(x): a = x values.append(a) def my_teardown(x): b = x values.append(b) my_setup_partial = partial(my_setup, 1) my_teardown_partial = partial(my_teardown, 2) def test_hello(): print (values) assert values == [1] def test_world(): print (values) assert values == [1,2] test_hello.setup = my_setup_partial test_hello.teardown = my_teardown_partial """ ) result = testdir.runpytest(p, "-p", "nose") > result.stdout.fnmatch_lines(["*2 passed*"]) E Failed: nomatch: '*2 passed*' E and: '' E remains unmatched: '*2 passed*' ../../../../pytest-3.10.1/testing/test_nose.py:161: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ test_nose_test_generator_fixtures _______________________ testdir = def test_nose_test_generator_fixtures(testdir): p = testdir.makepyfile( """ # taken from nose-0.11.1 unit_tests/test_generator_fixtures.py from nose.tools import eq_ called = [] def outer_setup(): called.append('outer_setup') def outer_teardown(): called.append('outer_teardown') def inner_setup(): called.append('inner_setup') def inner_teardown(): called.append('inner_teardown') def test_gen(): called[:] = [] for i in range(0, 5): yield check, i def check(i): expect = ['outer_setup'] for x in range(0, i): expect.append('inner_setup') expect.append('inner_teardown') expect.append('inner_setup') eq_(called, expect) test_gen.setup = outer_setup test_gen.teardown = outer_teardown check.setup = inner_setup check.teardown = inner_teardown class TestClass(object): def setup(self): print ("setup called in %s" % self) self.called = ['setup'] def teardown(self): print ("teardown called in %s" % self) eq_(self.called, ['setup']) self.called.append('teardown') def test(self): print ("test called in %s" % self) for i in range(0, 5): yield self.check, i def check(self, i): print ("check called in %s" % self) expect = ['setup'] #for x in range(0, i): # expect.append('setup') # expect.append('teardown') #expect.append('setup') eq_(self.called, expect) """ ) result = testdir.runpytest(p, "-p", "nose") > result.stdout.fnmatch_lines(["*10 passed*"]) E Failed: nomatch: '*10 passed*' E and: '' E remains unmatched: '*10 passed*' ../../../../pytest-3.10.1/testing/test_nose.py:228: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ test_module_level_setup ____________________________ testdir = def test_module_level_setup(testdir): testdir.makepyfile( """ from nose.tools import with_setup items = {} def setup(): items[1]=1 def teardown(): del items[1] def setup2(): items[2] = 2 def teardown2(): del items[2] def test_setup_module_setup(): assert items[1] == 1 @with_setup(setup2, teardown2) def test_local_setup(): assert items[2] == 2 assert 1 not in items """ ) result = testdir.runpytest("-p", "nose") > result.stdout.fnmatch_lines(["*2 passed*"]) E Failed: nomatch: '*2 passed*' E and: '' E remains unmatched: '*2 passed*' ../../../../pytest-3.10.1/testing/test_nose.py:259: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ test_nose_style_setup_teardown ________________________ testdir = def test_nose_style_setup_teardown(testdir): testdir.makepyfile( """ values = [] def setup_module(): values.append(1) def teardown_module(): del values[0] def test_hello(): assert values == [1] def test_world(): assert values == [1] """ ) result = testdir.runpytest("-p", "nose") > result.stdout.fnmatch_lines(["*2 passed*"]) E Failed: nomatch: '*2 passed*' E and: '' E remains unmatched: '*2 passed*' ../../../../pytest-3.10.1/testing/test_nose.py:281: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ test_nose_setup_ordering ___________________________ testdir = def test_nose_setup_ordering(testdir): testdir.makepyfile( """ def setup_module(mod): mod.visited = True class TestClass(object): def setup(self): assert visited def test_first(self): pass """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/test_nose.py:298: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ test_apiwrapper_problem_issue260 _______________________ testdir = def test_apiwrapper_problem_issue260(testdir): # this would end up trying a call an optional teardown on the class # for plain unittests we dont want nose behaviour testdir.makepyfile( """ import unittest class TestCase(unittest.TestCase): def setup(self): #should not be called in unittest testcases assert 0, 'setup' def teardown(self): #should not be called in unittest testcases assert 0, 'teardown' def setUp(self): print('setup') def tearDown(self): print('teardown') def test_fun(self): pass """ ) result = testdir.runpytest() > result.assert_outcomes(passed=1) ../../../../pytest-3.10.1/testing/test_nose.py:323: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c6200d850> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ test_setup_teardown_linking_issue265 _____________________ testdir = def test_setup_teardown_linking_issue265(testdir): # we accidentally didnt integrate nose setupstate with normal setupstate # this test ensures that won't happen again testdir.makepyfile( ''' import pytest class TestGeneric(object): def test_nothing(self): """Tests the API of the implementation (for generic and specialized).""" @pytest.mark.skipif("True", reason= "Skip tests to check if teardown is skipped as well.") class TestSkipTeardown(TestGeneric): def setup(self): """Sets up my specialized implementation for $COOL_PLATFORM.""" raise Exception("should not call setup for skipped tests") def teardown(self): """Undoes the setup.""" raise Exception("should not call teardown for skipped tests") ''' ) reprec = testdir.runpytest() > reprec.assert_outcomes(passed=1, skipped=1) ../../../../pytest-3.10.1/testing/test_nose.py:351: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c62743810> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ test_SkipTest_during_collection ________________________ testdir = def test_SkipTest_during_collection(testdir): p = testdir.makepyfile( """ import nose raise nose.SkipTest("during collection") def test_failing(): assert False """ ) result = testdir.runpytest(p) > result.assert_outcomes(skipped=1) ../../../../pytest-3.10.1/testing/test_nose.py:364: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c61f88310> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________________ test_SkipTest_in_test _____________________________ testdir = def test_SkipTest_in_test(testdir): testdir.makepyfile( """ import nose def test_skipping(): raise nose.SkipTest("in test") """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_nose.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________________ test_istest_function_decorator ________________________ testdir = def test_istest_function_decorator(testdir): p = testdir.makepyfile( """ import nose.tools @nose.tools.istest def not_test_prefix(): pass """ ) result = testdir.runpytest(p) > result.assert_outcomes(passed=1) ../../../../pytest-3.10.1/testing/test_nose.py:390: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c6236cc90> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ test_nottest_function_decorator ________________________ testdir = def test_nottest_function_decorator(testdir): testdir.makepyfile( """ import nose.tools @nose.tools.nottest def test_prefix(): pass """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_nose.py:402: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________________ test_istest_class_decorator __________________________ testdir = def test_istest_class_decorator(testdir): p = testdir.makepyfile( """ import nose.tools @nose.tools.istest class NotTestPrefix(object): def test_method(self): pass """ ) result = testdir.runpytest(p) > result.assert_outcomes(passed=1) ../../../../pytest-3.10.1/testing/test_nose.py:419: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c624b9f10> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ test_nottest_class_decorator _________________________ testdir = def test_nottest_class_decorator(testdir): testdir.makepyfile( """ import nose.tools @nose.tools.nottest class TestPrefix(object): def test_method(self): pass """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_nose.py:432: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________________ TestPasteCapture.test_failed _________________________ self = testdir = pastebinlist = [] def test_failed(self, testdir, pastebinlist): testpath = testdir.makepyfile( """ import pytest def test_pass(): pass def test_fail(): assert 0 def test_skip(): pytest.skip("") """ ) > reprec = testdir.inline_run(testpath, "--paste=failed") ../../../../pytest-3.10.1/testing/test_pastebin.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________________ TestPasteCapture.test_all ___________________________ self = testdir = pastebinlist = [] def test_all(self, testdir, pastebinlist): from _pytest.pytester import LineMatcher testpath = testdir.makepyfile( """ import pytest def test_pass(): pass def test_fail(): assert 0 def test_skip(): pytest.skip("") """ ) > reprec = testdir.inline_run(testpath, "--pastebin=all", "-v") ../../../../pytest-3.10.1/testing/test_pastebin.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ TestPasteCapture.test_non_ascii_paste_text __________________ self = testdir = def test_non_ascii_paste_text(self, testdir): """Make sure that text which contains non-ascii characters is pasted correctly. See #1219. """ testdir.makepyfile( test_unicode=""" # encoding: utf-8 def test(): assert '☺' == 1 """ ) result = testdir.runpytest("--pastebin=all") if sys.version_info[0] == 3: expected_msg = "*assert '☺' == 1*" else: expected_msg = "*assert '\\xe2\\x98\\xba' == 1*" result.stdout.fnmatch_lines( [ expected_msg, "*== 1 failed in *", > "*Sending information to Paste Service*", ] ) E Failed: nomatch: "*assert '☺' == 1*" E and: '' E remains unmatched: "*assert '☺' == 1*" ../../../../pytest-3.10.1/testing/test_pastebin.py:85: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestPytestPluginInteractions.test_addhooks_nohooks ______________ self = testdir = def test_addhooks_nohooks(self, testdir): testdir.makeconftest( """ import sys def pytest_addhooks(pluginmanager): pluginmanager.addhooks(sys) """ ) res = testdir.runpytest() assert res.ret != 0 > res.stderr.fnmatch_lines(["*did not find*sys*"]) E Failed: nomatch: '*did not find*sys*' E and: 'Traceback (most recent call last):' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess' E and: ' reprec = self.inline_run(*args, **kwargs)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run' E and: ' ret = pytest.main(list(args), plugins=plugins)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main' E and: ' config = _prepareconfig(args, plugins)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig' E and: ' pluginmanager=pluginmanager, args=args' E and: ' File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__' E and: ' return self._hookexec(self, self.get_hookimpls(), kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall' E and: ' gen.send(outcome)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse' E and: ' config = outcome.get_result()' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall' E and: ' res = hook_impl.function(*args)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse' E and: ' self.parse(args)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse' E and: ' self._preparse(args, addopts=addopts)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse' E and: ' self.pluginmanager.load_setuptools_entrypoints("pytest11")' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints' E and: ' self.register(plugin, name=ep.name)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register' E and: ' ret = super(PytestPluginManager, self).register(plugin, name)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register' E and: ' hook._maybe_apply_history(hookimpl)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history' E and: ' res = self._hookexec(self, [method], kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall' E and: ' return outcome.get_result()' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall' E and: ' res = hook_impl.function(*args)' E and: ' File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption' E and: " help='Depreacted, use --timeout-method')" E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption' E and: ' option = Argument(*optnames, **attrs)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__' E and: ' stacklevel=4,' E and: "DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',))" E and: '' E remains unmatched: '*did not find*sys*' ../../../../pytest-3.10.1/testing/test_pluginmanager.py:60: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestPytestPluginInteractions.test_do_ext_namespace ______________ self = testdir = @pytest.mark.filterwarnings("ignore:pytest_namespace is deprecated") def test_do_ext_namespace(self, testdir): testdir.makeconftest( """ def pytest_namespace(): return {'hello': 'world'} """ ) p = testdir.makepyfile( """ from pytest import hello import pytest def test_hello(): assert hello == "world" assert 'hello' in pytest.__all__ """ ) > reprec = testdir.inline_run(p) ../../../../pytest-3.10.1/testing/test_pluginmanager.py:90: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________ TestPytestPluginInteractions.test_do_option_postinitialize __________ self = testdir = def test_do_option_postinitialize(self, testdir): > config = testdir.parseconfigure() ../../../../pytest-3.10.1/testing/test_pluginmanager.py:94: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________ TestPytestPluginInteractions.test_configure __________________ self = testdir = def test_configure(self, testdir): > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_pluginmanager.py:107: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________ TestPytestPluginInteractions.test_hook_proxy _________________ self = testdir = def test_hook_proxy(self, testdir): """Test the gethookproxy function(#2016)""" > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_pluginmanager.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________________ test_default_markers _____________________________ testdir = def test_default_markers(testdir): result = testdir.runpytest("--markers") > result.stdout.fnmatch_lines(["*tryfirst*first*", "*trylast*last*"]) E Failed: nomatch: '*tryfirst*first*' E and: '' E remains unmatched: '*tryfirst*first*' ../../../../pytest-3.10.1/testing/test_pluginmanager.py:206: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ TestPytestPluginManager.test_plugin_skip ___________________ self = testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c64350810> def test_plugin_skip(self, testdir, monkeypatch): p = testdir.makepyfile( skipping1=""" import pytest pytest.skip("hello") """ ) p.copy(p.dirpath("skipping2.py")) monkeypatch.setenv("PYTEST_PLUGINS", "skipping2") result = testdir.runpytest("-rw", "-p", "skipping1", syspathinsert=True) > assert result.ret == EXIT_NOTESTSCOLLECTED E assert 3 == 5 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c62380890>.ret ../../../../pytest-3.10.1/testing/test_pluginmanager.py:295: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________ TestPytestPluginManager.test_pluginmanager_ENV_startup ____________ self = testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c624a6d10> def test_pluginmanager_ENV_startup(self, testdir, monkeypatch): testdir.makepyfile(pytest_x500="#") p = testdir.makepyfile( """ import pytest def test_hello(pytestconfig): plugin = pytestconfig.pluginmanager.get_plugin('pytest_x500') assert plugin is not None """ ) monkeypatch.setenv("PYTEST_PLUGINS", "pytest_x500", prepend=",") result = testdir.runpytest(p, syspathinsert=True) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c622fafd0>.ret ../../../../pytest-3.10.1/testing/test_pluginmanager.py:325: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ test_make_hook_recorder ____________________________ testdir = def test_make_hook_recorder(testdir): > item = testdir.getitem("def test_func(): pass") ../../../../pytest-3.10.1/testing/test_pytester.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________________________ test_parseconfig _______________________________ testdir = def test_parseconfig(testdir): > config1 = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_pytester.py:78: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________________ test_testdir_runs_with_plugin _________________________ testdir = def test_testdir_runs_with_plugin(testdir): testdir.makepyfile( """ pytest_plugins = "pytester" def test_hello(testdir): assert 1 """ ) result = testdir.runpytest() > result.assert_outcomes(passed=1) ../../../../pytest-3.10.1/testing/test_pytester.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c62228110> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ test_runresult_assertion_on_xfail _______________________ testdir = def test_runresult_assertion_on_xfail(testdir): testdir.makepyfile( """ import pytest pytest_plugins = "pytester" @pytest.mark.xfail def test_potato(): assert False """ ) result = testdir.runpytest() > result.assert_outcomes(xfailed=1) ../../../../pytest-3.10.1/testing/test_pytester.py:109: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c62818090> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ test_runresult_assertion_on_xpassed ______________________ testdir = def test_runresult_assertion_on_xpassed(testdir): testdir.makepyfile( """ import pytest pytest_plugins = "pytester" @pytest.mark.xfail def test_potato(): assert True """ ) result = testdir.runpytest() > result.assert_outcomes(xpassed=1) ../../../../pytest-3.10.1/testing/test_pytester.py:126: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c627c1210> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ test_xpassed_with_strict_is_considered_a_failure _______________ testdir = def test_xpassed_with_strict_is_considered_a_failure(testdir): testdir.makepyfile( """ import pytest pytest_plugins = "pytester" @pytest.mark.xfail(strict=True) def test_potato(): assert True """ ) result = testdir.runpytest() > result.assert_outcomes(failed=1) ../../../../pytest-3.10.1/testing/test_pytester.py:143: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c61d814d0> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____ TestInlineRunModulesCleanup.test_inline_run_test_module_not_cleaned_up ____ self = testdir = def test_inline_run_test_module_not_cleaned_up(self, testdir): test_mod = testdir.makepyfile("def test_foo(): assert True") > result = testdir.inline_run(str(test_mod)) ../../../../pytest-3.10.1/testing/test_pytester.py:207: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning TestInlineRunModulesCleanup.test_inline_run_taking_and_restoring_a_sys_modules_snapshot self = testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c61cb5790> def test_inline_run_taking_and_restoring_a_sys_modules_snapshot( self, testdir, monkeypatch ): spy_factory = self.spy_factory() monkeypatch.setattr(pytester, "SysModulesSnapshot", spy_factory) original = dict(sys.modules) testdir.syspathinsert() testdir.makepyfile(import1="# you son of a silly person") testdir.makepyfile(import2="# my hovercraft is full of eels") test_mod = testdir.makepyfile( """ import import1 def test_foo(): import import2""" ) > testdir.inline_run(str(test_mod)) ../../../../pytest-3.10.1/testing/test_pytester.py:244: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning TestInlineRunModulesCleanup.test_inline_run_sys_modules_snapshot_restore_preserving_modules self = testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c61ff7250> def test_inline_run_sys_modules_snapshot_restore_preserving_modules( self, testdir, monkeypatch ): spy_factory = self.spy_factory() monkeypatch.setattr(pytester, "SysModulesSnapshot", spy_factory) test_mod = testdir.makepyfile("def test_foo(): pass") > testdir.inline_run(str(test_mod)) ../../../../pytest-3.10.1/testing/test_pytester.py:257: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _ TestInlineRunModulesCleanup.test_external_test_module_imports_not_cleaned_up _ self = testdir = def test_external_test_module_imports_not_cleaned_up(self, testdir): testdir.syspathinsert() testdir.makepyfile(imported="data = 'you son of a silly person'") import imported test_mod = testdir.makepyfile( """ def test_foo(): import imported imported.data = 42""" ) > testdir.inline_run(str(test_mod)) ../../../../pytest-3.10.1/testing/test_pytester.py:275: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________________ test_unicode_args _______________________________ testdir = def test_unicode_args(testdir): result = testdir.runpytest("-k", u"💩") > assert result.ret == EXIT_NOTESTSCOLLECTED E assert 3 == 5 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c6247a950>.ret ../../../../pytest-3.10.1/testing/test_pytester.py:413: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ test_recwarn_functional ____________________________ testdir = def test_recwarn_functional(testdir): testdir.makepyfile( """ import warnings def test_method(recwarn): warnings.warn("hello") warn = recwarn.pop() assert isinstance(warn.message, UserWarning) """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_recwarn.py:28: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________________ TestWarns.test_double_test __________________________ self = testdir = def test_double_test(self, testdir): """If a test is run again, the warning should still be raised""" testdir.makepyfile( """ import pytest import warnings @pytest.mark.parametrize('run', [1, 2]) def test(run): with pytest.warns(RuntimeWarning): warnings.warn("runtime", RuntimeWarning) """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*2 passed in*"]) E Failed: nomatch: '*2 passed in*' E and: '' E remains unmatched: '*2 passed in*' ../../../../pytest-3.10.1/testing/test_recwarn.py:343: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________________ test_generic_path _______________________________ testdir = def test_generic_path(testdir): from _pytest.main import Session > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_resultlog.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestWithFunctionIntegration.test_collection_report ______________ self = , func = args = ('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_collection_report0/resultlog', 'r') kwargs = {}, __tracebackhide__ = False, cls = value = FileNotFoundError(2, 'No such file or directory') tb = , errno = 2 def checked_call(self, func, *args, **kwargs): """ call a function and raise an errno-exception if applicable. """ __tracebackhide__ = True try: > return func(*args, **kwargs) E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_collection_report0/resultlog' /usr/share/python3.7/site-packages/py/_error.py:66: FileNotFoundError During handling of the above exception, another exception occurred: self = testdir = def test_collection_report(self, testdir): ok = testdir.makepyfile(test_collection_ok="") fail = testdir.makepyfile(test_collection_fail="XXX") > lines = self.getresultlog(testdir, ok) ../../../../pytest-3.10.1/testing/test_resultlog.py:101: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_resultlog.py:96: in getresultlog return [x for x in resultlog.readlines(cr=0) if x] /usr/share/python3.7/site-packages/py/_path/common.py:182: in readlines content = self.read(mode) /usr/share/python3.7/site-packages/py/_path/common.py:170: in read with self.open(mode) as f: /usr/share/python3.7/site-packages/py/_path/local.py:361: in open return py.error.checked_call(open, self.strpath, mode) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , func = args = ('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_collection_report0/resultlog', 'r') kwargs = {}, __tracebackhide__ = False, cls = value = FileNotFoundError(2, 'No such file or directory') tb = , errno = 2 def checked_call(self, func, *args, **kwargs): """ call a function and raise an errno-exception if applicable. """ __tracebackhide__ = True try: return func(*args, **kwargs) except self.Error: raise except (OSError, EnvironmentError): cls, value, tb = sys.exc_info() if not hasattr(value, 'errno'): raise __tracebackhide__ = False errno = value.errno try: if not isinstance(value, WindowsError): raise NameError except NameError: # we are not on Windows, or we got a proper OSError cls = self._geterrnoclass(errno) else: try: cls = self._geterrnoclass(_winerrnomap[errno]) except KeyError: raise value > raise cls("%s%r" % (func.__name__, args)) E py.error.ENOENT: [No such file or directory]: open('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_collection_report0/resultlog', 'r') /usr/share/python3.7/site-packages/py/_error.py:86: ENOENT ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestWithFunctionIntegration.test_log_test_outcomes ______________ self = , func = args = ('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_log_test_outcomes0/resultlog', 'r') kwargs = {}, __tracebackhide__ = False, cls = value = FileNotFoundError(2, 'No such file or directory') tb = , errno = 2 def checked_call(self, func, *args, **kwargs): """ call a function and raise an errno-exception if applicable. """ __tracebackhide__ = True try: > return func(*args, **kwargs) E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_log_test_outcomes0/resultlog' /usr/share/python3.7/site-packages/py/_error.py:66: FileNotFoundError During handling of the above exception, another exception occurred: self = testdir = def test_log_test_outcomes(self, testdir): mod = testdir.makepyfile( test_mod=""" import pytest def test_pass(): pass def test_skip(): pytest.skip("hello") def test_fail(): raise ValueError("FAIL") @pytest.mark.xfail def test_xfail(): raise ValueError("XFAIL") @pytest.mark.xfail def test_xpass(): pass """ ) > lines = self.getresultlog(testdir, mod) ../../../../pytest-3.10.1/testing/test_resultlog.py:127: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/testing/test_resultlog.py:96: in getresultlog return [x for x in resultlog.readlines(cr=0) if x] /usr/share/python3.7/site-packages/py/_path/common.py:182: in readlines content = self.read(mode) /usr/share/python3.7/site-packages/py/_path/common.py:170: in read with self.open(mode) as f: /usr/share/python3.7/site-packages/py/_path/local.py:361: in open return py.error.checked_call(open, self.strpath, mode) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , func = args = ('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_log_test_outcomes0/resultlog', 'r') kwargs = {}, __tracebackhide__ = False, cls = value = FileNotFoundError(2, 'No such file or directory') tb = , errno = 2 def checked_call(self, func, *args, **kwargs): """ call a function and raise an errno-exception if applicable. """ __tracebackhide__ = True try: return func(*args, **kwargs) except self.Error: raise except (OSError, EnvironmentError): cls, value, tb = sys.exc_info() if not hasattr(value, 'errno'): raise __tracebackhide__ = False errno = value.errno try: if not isinstance(value, WindowsError): raise NameError except NameError: # we are not on Windows, or we got a proper OSError cls = self._geterrnoclass(errno) else: try: cls = self._geterrnoclass(_winerrnomap[errno]) except KeyError: raise value > raise cls("%s%r" % (func.__name__, args)) E py.error.ENOENT: [No such file or directory]: open('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_log_test_outcomes0/resultlog', 'r') /usr/share/python3.7/site-packages/py/_error.py:86: ENOENT ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________________ test_generic _________________________________ self = , func = args = ('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_generic0/result.log', 'r') kwargs = {}, __tracebackhide__ = False, cls = value = FileNotFoundError(2, 'No such file or directory') tb = , errno = 2 def checked_call(self, func, *args, **kwargs): """ call a function and raise an errno-exception if applicable. """ __tracebackhide__ = True try: > return func(*args, **kwargs) E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_generic0/result.log' /usr/share/python3.7/site-packages/py/_error.py:66: FileNotFoundError During handling of the above exception, another exception occurred: testdir = LineMatcher = def test_generic(testdir, LineMatcher): testdir.plugins.append("resultlog") testdir.makepyfile( """ import pytest def test_pass(): pass def test_fail(): assert 0 def test_skip(): pytest.skip("") @pytest.mark.xfail def test_xfail(): assert 0 @pytest.mark.xfail(run=False) def test_xfail_norun(): assert 0 """ ) testdir.runpytest("--resultlog=result.log") > lines = testdir.tmpdir.join("result.log").readlines(cr=0) ../../../../pytest-3.10.1/testing/test_resultlog.py:187: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/share/python3.7/site-packages/py/_path/common.py:182: in readlines content = self.read(mode) /usr/share/python3.7/site-packages/py/_path/common.py:170: in read with self.open(mode) as f: /usr/share/python3.7/site-packages/py/_path/local.py:361: in open return py.error.checked_call(open, self.strpath, mode) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , func = args = ('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_generic0/result.log', 'r') kwargs = {}, __tracebackhide__ = False, cls = value = FileNotFoundError(2, 'No such file or directory') tb = , errno = 2 def checked_call(self, func, *args, **kwargs): """ call a function and raise an errno-exception if applicable. """ __tracebackhide__ = True try: return func(*args, **kwargs) except self.Error: raise except (OSError, EnvironmentError): cls, value, tb = sys.exc_info() if not hasattr(value, 'errno'): raise __tracebackhide__ = False errno = value.errno try: if not isinstance(value, WindowsError): raise NameError except NameError: # we are not on Windows, or we got a proper OSError cls = self._geterrnoclass(errno) else: try: cls = self._geterrnoclass(_winerrnomap[errno]) except KeyError: raise value > raise cls("%s%r" % (func.__name__, args)) E py.error.ENOENT: [No such file or directory]: open('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_generic0/result.log', 'r') /usr/share/python3.7/site-packages/py/_error.py:86: ENOENT ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________ test_makedir_for_resultlog __________________________ self = , func = args = ('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_makedir_for_resultlog0/path/to/result.log', 'r') kwargs = {}, __tracebackhide__ = False, cls = value = FileNotFoundError(2, 'No such file or directory') tb = , errno = 2 def checked_call(self, func, *args, **kwargs): """ call a function and raise an errno-exception if applicable. """ __tracebackhide__ = True try: > return func(*args, **kwargs) E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_makedir_for_resultlog0/path/to/result.log' /usr/share/python3.7/site-packages/py/_error.py:66: FileNotFoundError During handling of the above exception, another exception occurred: testdir = LineMatcher = def test_makedir_for_resultlog(testdir, LineMatcher): """--resultlog should automatically create directories for the log file""" testdir.plugins.append("resultlog") testdir.makepyfile( """ import pytest def test_pass(): pass """ ) testdir.runpytest("--resultlog=path/to/result.log") > lines = testdir.tmpdir.join("path/to/result.log").readlines(cr=0) ../../../../pytest-3.10.1/testing/test_resultlog.py:210: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/share/python3.7/site-packages/py/_path/common.py:182: in readlines content = self.read(mode) /usr/share/python3.7/site-packages/py/_path/common.py:170: in read with self.open(mode) as f: /usr/share/python3.7/site-packages/py/_path/local.py:361: in open return py.error.checked_call(open, self.strpath, mode) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , func = args = ('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_makedir_for_resultlog0/path/to/result.log', 'r') kwargs = {}, __tracebackhide__ = False, cls = value = FileNotFoundError(2, 'No such file or directory') tb = , errno = 2 def checked_call(self, func, *args, **kwargs): """ call a function and raise an errno-exception if applicable. """ __tracebackhide__ = True try: return func(*args, **kwargs) except self.Error: raise except (OSError, EnvironmentError): cls, value, tb = sys.exc_info() if not hasattr(value, 'errno'): raise __tracebackhide__ = False errno = value.errno try: if not isinstance(value, WindowsError): raise NameError except NameError: # we are not on Windows, or we got a proper OSError cls = self._geterrnoclass(errno) else: try: cls = self._geterrnoclass(_winerrnomap[errno]) except KeyError: raise value > raise cls("%s%r" % (func.__name__, args)) E py.error.ENOENT: [No such file or directory]: open('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_makedir_for_resultlog0/path/to/result.log', 'r') /usr/share/python3.7/site-packages/py/_error.py:86: ENOENT ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ test_no_resultlog_on_slaves __________________________ testdir = def test_no_resultlog_on_slaves(testdir): > config = testdir.parseconfig("-p", "resultlog", "--resultlog=resultlog") ../../../../pytest-3.10.1/testing/test_resultlog.py:215: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________________ test_failure_issue380 _____________________________ testdir = def test_failure_issue380(testdir): testdir.makeconftest( """ import pytest class MyCollector(pytest.File): def collect(self): raise ValueError() def repr_failure(self, excinfo): return "somestring" def pytest_collect_file(path, parent): return MyCollector(parent=parent, fspath=path) """ ) testdir.makepyfile( """ def test_func(): pass """ ) result = testdir.runpytest("--resultlog=log") > assert result.ret == 2 E assert 3 == 2 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c624c29d0>.ret ../../../../pytest-3.10.1/testing/test_resultlog.py:250: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________ TestSetupState.test_setup ___________________________ self = testdir = def test_setup(self, testdir): ss = runner.SetupState() > item = testdir.getitem("def test_func(): pass") ../../../../pytest-3.10.1/testing/test_runner.py:24: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ TestSetupState.test_teardown_exact_stack_empty ________________ self = testdir = def test_teardown_exact_stack_empty(self, testdir): > item = testdir.getitem("def test_func(): pass") ../../../../pytest-3.10.1/testing/test_runner.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________ TestSetupState.test_setup_fails_and_failure_is_cached _____________ self = testdir = def test_setup_fails_and_failure_is_cached(self, testdir): item = testdir.getitem( """ def setup_module(mod): raise ValueError(42) def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________ TestSetupState.test_teardown_multiple_one_fails ________________ self = testdir = def test_teardown_multiple_one_fails(self, testdir): r = [] def fin1(): r.append("fin1") def fin2(): raise Exception("oops") def fin3(): r.append("fin3") > item = testdir.getitem("def test_func(): pass") ../../../../pytest-3.10.1/testing/test_runner.py:63: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ TestSetupState.test_teardown_multiple_fail __________________ self = testdir = def test_teardown_multiple_fail(self, testdir): # Ensure the first exception is the one which is re-raised. # Ideally both would be reported however. def fin1(): raise Exception("oops1") def fin2(): raise Exception("oops2") > item = testdir.getitem("def test_func(): pass") ../../../../pytest-3.10.1/testing/test_runner.py:82: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________ TestSetupState.test_teardown_multiple_scopes_one_fails ____________ self = testdir = def test_teardown_multiple_scopes_one_fails(self, testdir): module_teardown = [] def fin_func(): raise Exception("oops1") def fin_module(): module_teardown.append("fin_module") > item = testdir.getitem("def test_func(): pass") ../../../../pytest-3.10.1/testing/test_runner.py:99: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestExecutionNonForked.test_passfunction ___________________ self = testdir = def test_passfunction(self, testdir): reports = testdir.runitem( """ def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:115: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestExecutionNonForked.test_failfunction ___________________ self = testdir = def test_failfunction(self, testdir): reports = testdir.runitem( """ def test_func(): assert 0 > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:128: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestExecutionNonForked.test_skipfunction ___________________ self = testdir = def test_skipfunction(self, testdir): reports = testdir.runitem( """ import pytest def test_func(): pytest.skip("hello") > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestExecutionNonForked.test_skip_in_setup_function ______________ self = testdir = def test_skip_in_setup_function(self, testdir): reports = testdir.runitem( """ import pytest def setup_function(func): pytest.skip("hello") def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:166: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________ TestExecutionNonForked.test_failure_in_setup_function _____________ self = testdir = def test_failure_in_setup_function(self, testdir): reports = testdir.runitem( """ import pytest def setup_function(func): raise ValueError(42) def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:187: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________ TestExecutionNonForked.test_failure_in_teardown_function ___________ self = testdir = def test_failure_in_teardown_function(self, testdir): reports = testdir.runitem( """ import pytest def teardown_function(func): raise ValueError(42) def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:204: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________ TestExecutionNonForked.test_custom_failure_repr ________________ self = testdir = def test_custom_failure_repr(self, testdir): testdir.makepyfile( conftest=""" import pytest class Function(pytest.Function): def repr_failure(self, excinfo): return "hello" """ ) reports = testdir.runitem( """ import pytest def test_func(): assert 0 > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:230: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________ TestExecutionNonForked.test_teardown_final_returncode _____________ self = testdir = def test_teardown_final_returncode(self, testdir): rec = testdir.inline_runsource( """ def test_func(): pass def teardown_function(func): raise ValueError(42) > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:248: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________ TestExecutionNonForked.test_logstart_logfinish_hooks _____________ self = testdir = def test_logstart_logfinish_hooks(self, testdir): rec = testdir.inline_runsource( """ import pytest def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:258: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestExecutionNonForked.test_exact_teardown_issue90 ______________ self = testdir = def test_exact_teardown_issue90(self, testdir): rec = testdir.inline_runsource( """ import pytest class TestClass(object): def test_method(self): pass def teardown_class(cls): raise Exception() def test_func(): import sys # on python2 exc_info is keept till a function exits # so we would end up calling test functions while # sys.exc_info would return the indexerror # from guessing the lastitem excinfo = sys.exc_info() import traceback assert excinfo[0] is None, \ traceback.format_exception(*excinfo) def teardown_function(func): raise ValueError(42) > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:292: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________ TestExecutionNonForked.test_exact_teardown_issue1206 _____________ self = testdir = def test_exact_teardown_issue1206(self, testdir): """issue shadowing error with wrong number of arguments on teardown_method.""" rec = testdir.inline_runsource( """ import pytest class TestClass(object): def teardown_method(self, x, y, z): pass def test_method(self): assert True > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:321: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __ TestExecutionNonForked.test_failure_in_setup_function_ignores_custom_repr ___ self = testdir = def test_failure_in_setup_function_ignores_custom_repr(self, testdir): testdir.makepyfile( conftest=""" import pytest class Function(pytest.Function): def repr_failure(self, excinfo): assert 0 """ ) reports = testdir.runitem( """ def setup_function(func): raise ValueError(42) def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:360: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________ TestExecutionNonForked.test_systemexit_does_not_bail_out ___________ self = testdir = def test_systemexit_does_not_bail_out(self, testdir): try: reports = testdir.runitem( """ def test_func(): raise SystemExit(42) > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:379: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________ TestExecutionNonForked.test_exit_propagates __________________ self = testdir = def test_exit_propagates(self, testdir): try: testdir.runitem( """ import pytest def test_func(): raise pytest.exit.Exception() > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:394: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________ TestExecutionNonForked.test_keyboardinterrupt_propagates ___________ self = testdir = def test_keyboardinterrupt_propagates(self, testdir): try: testdir.runitem( """ def test_func(): raise KeyboardInterrupt("fake") > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:415: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ TestExecutionForked.test_passfunction _____________________ self = testdir = def test_passfunction(self, testdir): reports = testdir.runitem( """ def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:115: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ TestExecutionForked.test_failfunction _____________________ self = testdir = def test_failfunction(self, testdir): reports = testdir.runitem( """ def test_func(): assert 0 > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:128: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ TestExecutionForked.test_skipfunction _____________________ self = testdir = def test_skipfunction(self, testdir): reports = testdir.runitem( """ import pytest def test_func(): pytest.skip("hello") > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________ TestExecutionForked.test_skip_in_setup_function ________________ self = testdir = def test_skip_in_setup_function(self, testdir): reports = testdir.runitem( """ import pytest def setup_function(func): pytest.skip("hello") def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:166: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestExecutionForked.test_failure_in_setup_function ______________ self = testdir = def test_failure_in_setup_function(self, testdir): reports = testdir.runitem( """ import pytest def setup_function(func): raise ValueError(42) def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:187: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________ TestExecutionForked.test_failure_in_teardown_function _____________ self = testdir = def test_failure_in_teardown_function(self, testdir): reports = testdir.runitem( """ import pytest def teardown_function(func): raise ValueError(42) def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:204: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________ TestExecutionForked.test_custom_failure_repr _________________ self = testdir = def test_custom_failure_repr(self, testdir): testdir.makepyfile( conftest=""" import pytest class Function(pytest.Function): def repr_failure(self, excinfo): return "hello" """ ) reports = testdir.runitem( """ import pytest def test_func(): assert 0 > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:230: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestExecutionForked.test_teardown_final_returncode ______________ self = testdir = def test_teardown_final_returncode(self, testdir): rec = testdir.inline_runsource( """ def test_func(): pass def teardown_function(func): raise ValueError(42) > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:248: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestExecutionForked.test_logstart_logfinish_hooks _______________ self = testdir = def test_logstart_logfinish_hooks(self, testdir): rec = testdir.inline_runsource( """ import pytest def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:258: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________ TestExecutionForked.test_exact_teardown_issue90 ________________ self = testdir = def test_exact_teardown_issue90(self, testdir): rec = testdir.inline_runsource( """ import pytest class TestClass(object): def test_method(self): pass def teardown_class(cls): raise Exception() def test_func(): import sys # on python2 exc_info is keept till a function exits # so we would end up calling test functions while # sys.exc_info would return the indexerror # from guessing the lastitem excinfo = sys.exc_info() import traceback assert excinfo[0] is None, \ traceback.format_exception(*excinfo) def teardown_function(func): raise ValueError(42) > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:292: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestExecutionForked.test_exact_teardown_issue1206 _______________ self = testdir = def test_exact_teardown_issue1206(self, testdir): """issue shadowing error with wrong number of arguments on teardown_method.""" rec = testdir.inline_runsource( """ import pytest class TestClass(object): def teardown_method(self, x, y, z): pass def test_method(self): assert True > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:321: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____ TestExecutionForked.test_failure_in_setup_function_ignores_custom_repr ____ self = testdir = def test_failure_in_setup_function_ignores_custom_repr(self, testdir): testdir.makepyfile( conftest=""" import pytest class Function(pytest.Function): def repr_failure(self, excinfo): assert 0 """ ) reports = testdir.runitem( """ def setup_function(func): raise ValueError(42) def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:360: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________ TestExecutionForked.test_systemexit_does_not_bail_out _____________ self = testdir = def test_systemexit_does_not_bail_out(self, testdir): try: reports = testdir.runitem( """ def test_func(): raise SystemExit(42) > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:379: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestExecutionForked.test_exit_propagates ___________________ self = testdir = def test_exit_propagates(self, testdir): try: testdir.runitem( """ import pytest def test_func(): raise pytest.exit.Exception() > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:394: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________________ TestExecutionForked.test_suicide _______________________ self = testdir = def test_suicide(self, testdir): reports = testdir.runitem( """ def test_func(): import os os.kill(os.getpid(), 15) > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:437: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ TestSessionReports.test_collect_result ____________________ self = testdir = def test_collect_result(self, testdir): col = testdir.getmodulecol( """ def test_func1(): pass class TestClass(object): pass > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:452: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________________ test_pytest_exit_msg _____________________________ testdir = def test_pytest_exit_msg(testdir): testdir.makeconftest( """ import pytest def pytest_configure(config): pytest.exit('oh noes') """ ) result = testdir.runpytest() > result.stderr.fnmatch_lines(["Exit: oh noes"]) E Failed: nomatch: 'Exit: oh noes' E and: 'Traceback (most recent call last):' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess' E and: ' reprec = self.inline_run(*args, **kwargs)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run' E and: ' ret = pytest.main(list(args), plugins=plugins)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main' E and: ' config = _prepareconfig(args, plugins)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig' E and: ' pluginmanager=pluginmanager, args=args' E and: ' File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__' E and: ' return self._hookexec(self, self.get_hookimpls(), kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall' E and: ' gen.send(outcome)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse' E and: ' config = outcome.get_result()' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall' E and: ' res = hook_impl.function(*args)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse' E and: ' self.parse(args)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse' E and: ' self._preparse(args, addopts=addopts)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse' E and: ' self.pluginmanager.load_setuptools_entrypoints("pytest11")' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints' E and: ' self.register(plugin, name=ep.name)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register' E and: ' ret = super(PytestPluginManager, self).register(plugin, name)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register' E and: ' hook._maybe_apply_history(hookimpl)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history' E and: ' res = self._hookexec(self, [method], kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec' E and: ' return self._inner_hookexec(hook, methods, kwargs)' E and: ' File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in ' E and: ' firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall' E and: ' return outcome.get_result()' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result' E and: ' raise ex[1].with_traceback(ex[2])' E and: ' File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall' E and: ' res = hook_impl.function(*args)' E and: ' File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption' E and: " help='Depreacted, use --timeout-method')" E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption' E and: ' option = Argument(*optnames, **attrs)' E and: ' File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__' E and: ' stacklevel=4,' E and: "DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',))" E and: '' E remains unmatched: 'Exit: oh noes' ../../../../pytest-3.10.1/testing/test_runner.py:577: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ test_pytest_exit_returncode __________________________ testdir = def test_pytest_exit_returncode(testdir): testdir.makepyfile( """ import pytest def test_foo(): pytest.exit("some exit msg", 99) """ ) result = testdir.runpytest() > assert result.ret == 99 E assert 3 == 99 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c61cea990>.ret ../../../../pytest-3.10.1/testing/test_runner.py:589: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ test_pytest_fail_notrace_runtest _______________________ testdir = def test_pytest_fail_notrace_runtest(testdir): """Test pytest.fail(..., pytrace=False) does not show tracebacks during test run.""" testdir.makepyfile( """ import pytest def test_hello(): pytest.fail("hello", pytrace=False) def teardown_function(function): pytest.fail("world", pytrace=False) """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["world", "hello"]) E Failed: nomatch: 'world' E and: '' E remains unmatched: 'world' ../../../../pytest-3.10.1/testing/test_runner.py:604: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ test_pytest_fail_notrace_collection ______________________ testdir = def test_pytest_fail_notrace_collection(testdir): """Test pytest.fail(..., pytrace=False) does not show tracebacks during collection.""" testdir.makepyfile( """ import pytest def some_internal_function(): pytest.fail("hello", pytrace=False) some_internal_function() """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["hello"]) E Failed: nomatch: 'hello' E and: '' E remains unmatched: 'hello' ../../../../pytest-3.10.1/testing/test_runner.py:619: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ test_pytest_fail_notrace_non_ascii[u] _____________________ testdir = str_prefix = 'u' @pytest.mark.parametrize("str_prefix", ["u", ""]) def test_pytest_fail_notrace_non_ascii(testdir, str_prefix): """Fix pytest.fail with pytrace=False with non-ascii characters (#1178). This tests with native and unicode strings containing non-ascii chars. """ testdir.makepyfile( u""" # coding: utf-8 import pytest def test_hello(): pytest.fail(%s'oh oh: ☺', pytrace=False) """ % str_prefix ) result = testdir.runpytest() if sys.version_info[0] >= 3: > result.stdout.fnmatch_lines(["*test_hello*", "oh oh: ☺"]) E Failed: nomatch: '*test_hello*' E and: '' E remains unmatched: '*test_hello*' ../../../../pytest-3.10.1/testing/test_runner.py:641: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ test_pytest_fail_notrace_non_ascii[] _____________________ testdir = str_prefix = '' @pytest.mark.parametrize("str_prefix", ["u", ""]) def test_pytest_fail_notrace_non_ascii(testdir, str_prefix): """Fix pytest.fail with pytrace=False with non-ascii characters (#1178). This tests with native and unicode strings containing non-ascii chars. """ testdir.makepyfile( u""" # coding: utf-8 import pytest def test_hello(): pytest.fail(%s'oh oh: ☺', pytrace=False) """ % str_prefix ) result = testdir.runpytest() if sys.version_info[0] >= 3: > result.stdout.fnmatch_lines(["*test_hello*", "oh oh: ☺"]) E Failed: nomatch: '*test_hello*' E and: '' E remains unmatched: '*test_hello*' ../../../../pytest-3.10.1/testing/test_runner.py:641: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ test_pytest_no_tests_collected_exit_status __________________ testdir = def test_pytest_no_tests_collected_exit_status(testdir): result = testdir.runpytest() > result.stdout.fnmatch_lines("*collected 0 items*") E Failed: nomatch: '*collected 0 items*' E and: '' E remains unmatched: '*collected 0 items*' ../../../../pytest-3.10.1/testing/test_runner.py:649: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ test_importorskip_module_level ________________________ testdir = def test_importorskip_module_level(testdir): """importorskip must be able to skip entire modules when used at module level""" testdir.makepyfile( """ import pytest foobarbaz = pytest.importorskip("foobarbaz") def test_foo(): pass """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*collected 0 items / 1 skipped*"]) E Failed: nomatch: '*collected 0 items / 1 skipped*' E and: '' E remains unmatched: '*collected 0 items / 1 skipped*' ../../../../pytest-3.10.1/testing/test_runner.py:746: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ test_unicode_in_longrepr ___________________________ testdir = def test_unicode_in_longrepr(testdir): testdir.makeconftest( """ # -*- coding: utf-8 -*- import pytest @pytest.hookimpl(hookwrapper=True) def pytest_runtest_makereport(): outcome = yield rep = outcome.get_result() if rep.when == "call": rep.longrepr = u'ä' """ ) testdir.makepyfile( """ def test_out(): assert 0 """ ) result = testdir.runpytest() > assert result.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c61e151d0>.ret ../../../../pytest-3.10.1/testing/test_runner.py:787: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________ test_makereport_getsource ___________________________ testdir = def test_makereport_getsource(testdir): testdir.makepyfile( """ def test_foo(): if False: pass else: assert False """ ) result = testdir.runpytest() assert "INTERNALERROR" not in result.stdout.str() > result.stdout.fnmatch_lines(["*else: assert False*"]) E Failed: nomatch: '*else: assert False*' E and: '' E remains unmatched: '*else: assert False*' ../../../../pytest-3.10.1/testing/test_runner.py:814: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ test_makereport_getsource_dynamic_code ____________________ testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c61e6bc10> > ??? E Failed: nomatch: '*test_fix*' E and: '' E remains unmatched: '*test_fix*' ../../../../pytest-3.10.1/testing/test_runner.py:845: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________ test_current_test_env_var ___________________________ testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c61ba1050> def test_current_test_env_var(testdir, monkeypatch): pytest_current_test_vars = [] monkeypatch.setattr( sys, "pytest_current_test_vars", pytest_current_test_vars, raising=False ) testdir.makepyfile( """ import pytest import sys import os @pytest.fixture def fix(): sys.pytest_current_test_vars.append(('setup', os.environ['PYTEST_CURRENT_TEST'])) yield sys.pytest_current_test_vars.append(('teardown', os.environ['PYTEST_CURRENT_TEST'])) def test(fix): sys.pytest_current_test_vars.append(('call', os.environ['PYTEST_CURRENT_TEST'])) """ ) result = testdir.runpytest_inprocess() > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c61d23690>.ret ../../../../pytest-3.10.1/testing/test_runner.py:900: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ TestReportContents.test_longreprtext_pass ___________________ self = testdir = def test_longreprtext_pass(self, testdir): reports = testdir.runitem( """ def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:923: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________ TestReportContents.test_longreprtext_failure _________________ self = testdir = def test_longreprtext_failure(self, testdir): reports = testdir.runitem( """ def test_func(): x = 1 assert x == 4 > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ TestReportContents.test_captured_text _____________________ self = testdir = def test_captured_text(self, testdir): reports = testdir.runitem( """ import pytest import sys @pytest.fixture def fix(): sys.stdout.write('setup: stdout\\n') sys.stderr.write('setup: stderr\\n') yield sys.stdout.write('teardown: stdout\\n') sys.stderr.write('teardown: stderr\\n') assert 0 def test_func(fix): sys.stdout.write('call: stdout\\n') sys.stderr.write('call: stderr\\n') assert 0 > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:958: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestReportContents.test_no_captured_text ___________________ self = testdir = def test_no_captured_text(self, testdir): reports = testdir.runitem( """ def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_runner.py:974: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:764: in runitem item = self.getitem(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________________ test_module_and_function_setup ________________________ testdir = def test_module_and_function_setup(testdir): reprec = testdir.inline_runsource( """ modlevel = [] def setup_module(module): assert not modlevel module.modlevel.append(42) def teardown_module(module): modlevel.pop() def setup_function(function): function.answer = 17 def teardown_function(function): del function.answer def test_modlevel(): assert modlevel[0] == 42 assert test_modlevel.answer == 17 class TestFromClass(object): def test_module(self): assert modlevel[0] == 42 assert not hasattr(test_modlevel, 'answer') > """ ) ../../../../pytest-3.10.1/testing/test_runner_xunit.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ test_module_setup_failure_no_teardown _____________________ testdir = def test_module_setup_failure_no_teardown(testdir): reprec = testdir.inline_runsource( """ values = [] def setup_module(module): values.append(1) 0/0 def test_nothing(): pass def teardown_module(module): values.append(2) > """ ) ../../../../pytest-3.10.1/testing/test_runner_xunit.py:58: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ test_setup_function_failure_no_teardown ____________________ testdir = def test_setup_function_failure_no_teardown(testdir): reprec = testdir.inline_runsource( """ modlevel = [] def setup_function(function): modlevel.append(1) 0/0 def teardown_function(module): modlevel.append(2) def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_runner_xunit.py:78: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________________________ test_class_setup _______________________________ testdir = def test_class_setup(testdir): reprec = testdir.inline_runsource( """ class TestSimpleClassSetup(object): clslevel = [] def setup_class(cls): cls.clslevel.append(23) def teardown_class(cls): cls.clslevel.pop() def test_classlevel(self): assert self.clslevel[0] == 23 class TestInheritedClassSetupStillWorks(TestSimpleClassSetup): def test_classlevel_anothertime(self): assert self.clslevel == [23] def test_cleanup(): assert not TestSimpleClassSetup.clslevel assert not TestInheritedClassSetupStillWorks.clslevel > """ ) ../../../../pytest-3.10.1/testing/test_runner_xunit.py:105: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ test_class_setup_failure_no_teardown _____________________ testdir = def test_class_setup_failure_no_teardown(testdir): reprec = testdir.inline_runsource( """ class TestSimpleClassSetup(object): clslevel = [] def setup_class(cls): 0/0 def teardown_class(cls): cls.clslevel.append(1) def test_classlevel(self): pass def test_cleanup(): assert not TestSimpleClassSetup.clslevel > """ ) ../../../../pytest-3.10.1/testing/test_runner_xunit.py:126: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________________ test_method_setup _______________________________ testdir = def test_method_setup(testdir): reprec = testdir.inline_runsource( """ class TestSetupMethod(object): def setup_method(self, meth): self.methsetup = meth def teardown_method(self, meth): del self.methsetup def test_some(self): assert self.methsetup == self.test_some def test_other(self): assert self.methsetup == self.test_other > """ ) ../../../../pytest-3.10.1/testing/test_runner_xunit.py:145: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ test_method_setup_failure_no_teardown _____________________ testdir = def test_method_setup_failure_no_teardown(testdir): reprec = testdir.inline_runsource( """ class TestMethodSetup(object): clslevel = [] def setup_method(self, method): self.clslevel.append(1) 0/0 def teardown_method(self, method): self.clslevel.append(2) def test_method(self): pass def test_cleanup(): assert TestMethodSetup.clslevel == [1] > """ ) ../../../../pytest-3.10.1/testing/test_runner_xunit.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________________ test_method_generator_setup __________________________ testdir = def test_method_generator_setup(testdir): reprec = testdir.inline_runsource( """ class TestSetupTeardownOnInstance(object): def setup_class(cls): cls.classsetup = True def setup_method(self, method): self.methsetup = method def test_generate(self): assert self.classsetup assert self.methsetup == self.test_generate yield self.generated, 5 yield self.generated, 2 def generated(self, value): assert self.classsetup assert self.methsetup == self.test_generate assert value == 5 > """ ) ../../../../pytest-3.10.1/testing/test_runner_xunit.py:192: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________________ test_func_generator_setup ___________________________ testdir = def test_func_generator_setup(testdir): reprec = testdir.inline_runsource( """ import sys def setup_module(mod): print ("setup_module") mod.x = [] def setup_function(fun): print ("setup_function") x.append(1) def teardown_function(fun): print ("teardown_function") x.pop() def test_one(): assert x == [1] def check(): print ("check") sys.stderr.write("e\\n") assert x == [1] yield check assert x == [1] > """ ) ../../../../pytest-3.10.1/testing/test_runner_xunit.py:222: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ test_method_setup_uses_fresh_instances ____________________ testdir = def test_method_setup_uses_fresh_instances(testdir): reprec = testdir.inline_runsource( """ class TestSelfState1(object): memory = [] def test_hello(self): self.memory.append(self) def test_afterhello(self): assert self != self.memory[0] > """ ) ../../../../pytest-3.10.1/testing/test_runner_xunit.py:238: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________ test_setup_that_skips_calledagain _______________________ testdir = def test_setup_that_skips_calledagain(testdir): p = testdir.makepyfile( """ import pytest def setup_module(mod): pytest.skip("x") def test_function1(): pass def test_function2(): pass """ ) > reprec = testdir.inline_run(p) ../../../../pytest-3.10.1/testing/test_runner_xunit.py:255: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ test_setup_fails_again_on_all_tests ______________________ testdir = def test_setup_fails_again_on_all_tests(testdir): p = testdir.makepyfile( """ import pytest def setup_module(mod): raise ValueError(42) def test_function1(): pass def test_function2(): pass """ ) > reprec = testdir.inline_run(p) ../../../../pytest-3.10.1/testing/test_runner_xunit.py:271: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________ test_setup_funcarg_setup_when_outer_scope_fails ________________ testdir = def test_setup_funcarg_setup_when_outer_scope_fails(testdir): p = testdir.makepyfile( """ import pytest def setup_module(mod): raise ValueError(42) @pytest.fixture def hello(request): raise ValueError("xyz43") def test_function1(hello): pass def test_function2(hello): pass """ ) result = testdir.runpytest(p) result.stdout.fnmatch_lines( [ "*function1*", "*ValueError*42*", "*function2*", "*ValueError*42*", > "*2 error*", ] ) E Failed: nomatch: '*function1*' E and: '' E remains unmatched: '*function1*' ../../../../pytest-3.10.1/testing/test_runner_xunit.py:297: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________ test_setup_teardown_function_level_with_optional_argument[] __________ testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c61e17390> arg = '' @pytest.mark.parametrize("arg", ["", "arg"]) def test_setup_teardown_function_level_with_optional_argument( testdir, monkeypatch, arg ): """parameter to setup/teardown xunit-style functions parameter is now optional (#1728).""" import sys trace_setups_teardowns = [] monkeypatch.setattr( sys, "trace_setups_teardowns", trace_setups_teardowns, raising=False ) p = testdir.makepyfile( """ import pytest import sys trace = sys.trace_setups_teardowns.append def setup_module({arg}): trace('setup_module') def teardown_module({arg}): trace('teardown_module') def setup_function({arg}): trace('setup_function') def teardown_function({arg}): trace('teardown_function') def test_function_1(): pass def test_function_2(): pass class Test(object): def setup_method(self, {arg}): trace('setup_method') def teardown_method(self, {arg}): trace('teardown_method') def test_method_1(self): pass def test_method_2(self): pass """.format( arg=arg ) ) > result = testdir.inline_run(p) ../../../../pytest-3.10.1/testing/test_runner_xunit.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________ test_setup_teardown_function_level_with_optional_argument[arg] ________ testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c61c32310> arg = 'arg' @pytest.mark.parametrize("arg", ["", "arg"]) def test_setup_teardown_function_level_with_optional_argument( testdir, monkeypatch, arg ): """parameter to setup/teardown xunit-style functions parameter is now optional (#1728).""" import sys trace_setups_teardowns = [] monkeypatch.setattr( sys, "trace_setups_teardowns", trace_setups_teardowns, raising=False ) p = testdir.makepyfile( """ import pytest import sys trace = sys.trace_setups_teardowns.append def setup_module({arg}): trace('setup_module') def teardown_module({arg}): trace('teardown_module') def setup_function({arg}): trace('setup_function') def teardown_function({arg}): trace('teardown_function') def test_function_1(): pass def test_function_2(): pass class Test(object): def setup_method(self, {arg}): trace('setup_method') def teardown_method(self, {arg}): trace('teardown_method') def test_method_1(self): pass def test_method_2(self): pass """.format( arg=arg ) ) > result = testdir.inline_run(p) ../../../../pytest-3.10.1/testing/test_runner_xunit.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ TestNewSession.test_basic_testitem_events ___________________ self = testdir = def test_basic_testitem_events(self, testdir): tfile = testdir.makepyfile( """ def test_one(): pass def test_one_one(): assert 0 def test_other(): raise ValueError(23) class TestClass(object): def test_two(self, someargs): pass """ ) > reprec = testdir.inline_run(tfile) ../../../../pytest-3.10.1/testing/test_session.py:24: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestNewSession.test_nested_import_error ____________________ self = testdir = def test_nested_import_error(self, testdir): tfile = testdir.makepyfile( """ import import_fails def test_this(): assert import_fails.a == 1 """, import_fails=""" import does_not_work a = 1 """, ) > reprec = testdir.inline_run(tfile) ../../../../pytest-3.10.1/testing/test_session.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________ TestNewSession.test_raises_output _______________________ self = testdir = def test_raises_output(self, testdir): reprec = testdir.inline_runsource( """ import pytest def test_raises_doesnt(): pytest.raises(ValueError, int, "3") > """ ) ../../../../pytest-3.10.1/testing/test_session.py:66: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ TestNewSession.test_generator_yields_None ___________________ self = testdir = def test_generator_yields_None(self, testdir): reprec = testdir.inline_runsource( """ def test_1(): yield None > """ ) ../../../../pytest-3.10.1/testing/test_session.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestNewSession.test_syntax_error_module ____________________ self = testdir = def test_syntax_error_module(self, testdir): > reprec = testdir.inline_runsource("this is really not python") ../../../../pytest-3.10.1/testing/test_session.py:88: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ TestNewSession.test_exit_first_problem ____________________ self = testdir = def test_exit_first_problem(self, testdir): reprec = testdir.inline_runsource( """ def test_one(): assert 0 def test_two(): assert 0 """, > "--exitfirst", ) ../../../../pytest-3.10.1/testing/test_session.py:100: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________________ TestNewSession.test_maxfail __________________________ self = testdir = def test_maxfail(self, testdir): reprec = testdir.inline_runsource( """ def test_one(): assert 0 def test_two(): assert 0 def test_three(): assert 0 """, > "--maxfail=2", ) ../../../../pytest-3.10.1/testing/test_session.py:113: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________________ TestNewSession.test_broken_repr ________________________ self = testdir = def test_broken_repr(self, testdir): p = testdir.makepyfile( """ import pytest class BrokenRepr1(object): foo=0 def __repr__(self): raise Exception("Ha Ha fooled you, I'm a broken repr().") class TestBrokenClass(object): def test_explicit_bad_repr(self): t = BrokenRepr1() pytest.raises(Exception, 'repr(t)') def test_implicit_bad_repr1(self): t = BrokenRepr1() assert t.foo == 1 """ ) > reprec = testdir.inline_run(p) ../../../../pytest-3.10.1/testing/test_session.py:139: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ TestNewSession.test_skip_file_by_conftest ___________________ self = testdir = def test_skip_file_by_conftest(self, testdir): testdir.makepyfile( conftest=""" import pytest def pytest_collect_file(): pytest.skip("intentional") """, test_file=""" def test_one(): pass """, ) try: > reprec = testdir.inline_run(testdir.tmpdir) ../../../../pytest-3.10.1/testing/test_session.py:162: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ TestNewSession.test_order_of_execution ____________________ self = testdir = def test_order_of_execution(self, testdir): reprec = testdir.inline_runsource( """ values = [] def test_1(): values.append(1) def test_2(): values.append(2) def test_3(): assert values == [1,2] class Testmygroup(object): reslist = values def test_1(self): self.reslist.append(1) def test_2(self): self.reslist.append(2) def test_3(self): self.reslist.append(3) def test_4(self): assert self.reslist == [1,2,1,2,3] > """ ) ../../../../pytest-3.10.1/testing/test_session.py:191: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________ TestNewSession.test_collect_only_with_various_situations ___________ self = testdir = def test_collect_only_with_various_situations(self, testdir): p = testdir.makepyfile( test_one=""" def test_one(): raise ValueError() class TestX(object): def test_method_one(self): pass class TestY(TestX): pass """, test_three="xxxdsadsadsadsa", __init__="", ) > reprec = testdir.inline_run("--collect-only", p.dirpath()) ../../../../pytest-3.10.1/testing/test_session.py:214: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestNewSession.test_minus_x_import_error ___________________ self = testdir = def test_minus_x_import_error(self, testdir): testdir.makepyfile(__init__="") testdir.makepyfile(test_one="xxxx", test_two="yyyy") > reprec = testdir.inline_run("-x", testdir.tmpdir) ../../../../pytest-3.10.1/testing/test_session.py:229: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestNewSession.test_minus_x_overridden_by_maxfail _______________ self = testdir = def test_minus_x_overridden_by_maxfail(self, testdir): testdir.makepyfile(__init__="") testdir.makepyfile(test_one="xxxx", test_two="yyyy", test_third="zzz") > reprec = testdir.inline_run("-x", "--maxfail=2", testdir.tmpdir) ../../../../pytest-3.10.1/testing/test_session.py:237: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________________ test_plugin_already_exists __________________________ testdir = def test_plugin_already_exists(testdir): > config = testdir.parseconfig("-p", "terminal") ../../../../pytest-3.10.1/testing/test_session.py:256: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________________________ test_exclude _________________________________ testdir = def test_exclude(testdir): hellodir = testdir.mkdir("hello") hellodir.join("test_hello.py").write("x y syntaxerror") hello2dir = testdir.mkdir("hello2") hello2dir.join("test_hello2.py").write("x y syntaxerror") testdir.makepyfile(test_ok="def test_pass(): pass") result = testdir.runpytest("--ignore=hello", "--ignore=hello2") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c61d4bbd0>.ret ../../../../pytest-3.10.1/testing/test_session.py:269: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________________ test_deselect _________________________________ testdir = def test_deselect(testdir): testdir.makepyfile( test_a=""" import pytest def test_a1(): pass @pytest.mark.parametrize('b', range(3)) def test_a2(b): pass """ ) result = testdir.runpytest( "-v", "--deselect=test_a.py::test_a2[1]", "--deselect=test_a.py::test_a2[2]" ) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c6235ce90>.ret ../../../../pytest-3.10.1/testing/test_session.py:285: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ test_sessionfinish_with_start _________________________ testdir = def test_sessionfinish_with_start(testdir): testdir.makeconftest( """ import os values = [] def pytest_sessionstart(): values.append(os.getcwd()) os.chdir("..") def pytest_sessionfinish(): assert values[0] == os.getcwd() """ ) res = testdir.runpytest("--collect-only") > assert res.ret == EXIT_NOTESTSCOLLECTED E assert 3 == 5 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c623d4850>.ret ../../../../pytest-3.10.1/testing/test_session.py:306: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ test_rootdir_option_arg[root] _________________________ testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c61cf9cd0> path = 'root' @pytest.mark.parametrize("path", ["root", "{relative}/root", "{environment}/root"]) def test_rootdir_option_arg(testdir, monkeypatch, path): monkeypatch.setenv("PY_ROOTDIR_PATH", str(testdir.tmpdir)) path = path.format(relative=str(testdir.tmpdir), environment="$PY_ROOTDIR_PATH") rootdir = testdir.mkdir("root") rootdir.mkdir("tests") testdir.makepyfile( """ import os def test_one(): assert 1 """ ) result = testdir.runpytest("--rootdir={}".format(path)) result.stdout.fnmatch_lines( [ "*rootdir: {}/root, inifile:*".format(testdir.tmpdir), "root/test_rootdir_option_arg.py *", > "*1 passed*", ] ) E Failed: nomatch: '*rootdir: /tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_rootdir_option_arg0/root, inifile:*' E and: '' E remains unmatched: '*rootdir: /tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_rootdir_option_arg0/root, inifile:*' ../../../../pytest-3.10.1/testing/test_session.py:329: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ test_rootdir_option_arg[{relative}/root] ___________________ testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c622b8d50> path = '/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_rootdir_option_arg1/root' @pytest.mark.parametrize("path", ["root", "{relative}/root", "{environment}/root"]) def test_rootdir_option_arg(testdir, monkeypatch, path): monkeypatch.setenv("PY_ROOTDIR_PATH", str(testdir.tmpdir)) path = path.format(relative=str(testdir.tmpdir), environment="$PY_ROOTDIR_PATH") rootdir = testdir.mkdir("root") rootdir.mkdir("tests") testdir.makepyfile( """ import os def test_one(): assert 1 """ ) result = testdir.runpytest("--rootdir={}".format(path)) result.stdout.fnmatch_lines( [ "*rootdir: {}/root, inifile:*".format(testdir.tmpdir), "root/test_rootdir_option_arg.py *", > "*1 passed*", ] ) E Failed: nomatch: '*rootdir: /tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_rootdir_option_arg1/root, inifile:*' E and: '' E remains unmatched: '*rootdir: /tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_rootdir_option_arg1/root, inifile:*' ../../../../pytest-3.10.1/testing/test_session.py:329: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ test_rootdir_option_arg[{environment}/root] __________________ testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c61ff3f50> path = '$PY_ROOTDIR_PATH/root' @pytest.mark.parametrize("path", ["root", "{relative}/root", "{environment}/root"]) def test_rootdir_option_arg(testdir, monkeypatch, path): monkeypatch.setenv("PY_ROOTDIR_PATH", str(testdir.tmpdir)) path = path.format(relative=str(testdir.tmpdir), environment="$PY_ROOTDIR_PATH") rootdir = testdir.mkdir("root") rootdir.mkdir("tests") testdir.makepyfile( """ import os def test_one(): assert 1 """ ) result = testdir.runpytest("--rootdir={}".format(path)) result.stdout.fnmatch_lines( [ "*rootdir: {}/root, inifile:*".format(testdir.tmpdir), "root/test_rootdir_option_arg.py *", > "*1 passed*", ] ) E Failed: nomatch: '*rootdir: /tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_rootdir_option_arg2/root, inifile:*' E and: '' E remains unmatched: '*rootdir: /tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_rootdir_option_arg2/root, inifile:*' ../../../../pytest-3.10.1/testing/test_session.py:329: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ TestEvaluator.test_no_marker _________________________ self = testdir = def test_no_marker(self, testdir): > item = testdir.getitem("def test_func(): pass") ../../../../pytest-3.10.1/testing/test_skipping.py:16: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________ TestEvaluator.test_marked_no_args _______________________ self = testdir = def test_marked_no_args(self, testdir): item = testdir.getitem( """ import pytest @pytest.mark.xyz def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_skipping.py:28: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________ TestEvaluator.test_marked_one_arg _______________________ self = testdir = def test_marked_one_arg(self, testdir): item = testdir.getitem( """ import pytest @pytest.mark.xyz("hasattr(os, 'sep')") def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_skipping.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ TestEvaluator.test_marked_one_arg_with_reason _________________ self = testdir = def test_marked_one_arg_with_reason(self, testdir): item = testdir.getitem( """ import pytest @pytest.mark.xyz("hasattr(os, 'sep')", attr=2, reason="hello world") def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_skipping.py:75: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestEvaluator.test_marked_one_arg_twice ____________________ self = testdir = def test_marked_one_arg_twice(self, testdir): lines = [ """@pytest.mark.skipif("not hasattr(os, 'murks')")""", """@pytest.mark.skipif("hasattr(os, 'murks')")""", ] for i in range(0, 2): item = testdir.getitem( """ import pytest %s %s def test_func(): pass """ > % (lines[i], lines[(i + 1) % 2]) ) ../../../../pytest-3.10.1/testing/test_skipping.py:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestEvaluator.test_marked_one_arg_twice2 ___________________ self = testdir = def test_marked_one_arg_twice2(self, testdir): item = testdir.getitem( """ import pytest @pytest.mark.skipif("hasattr(os, 'murks')") @pytest.mark.skipif("not hasattr(os, 'murks')") def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_skipping.py:114: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ TestEvaluator.test_marked_skip_with_not_string ________________ self = testdir = def test_marked_skip_with_not_string(self, testdir): item = testdir.getitem( """ import pytest @pytest.mark.skipif(False) def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_skipping.py:129: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________________ TestEvaluator.test_skipif_class ________________________ self = testdir = def test_skipif_class(self, testdir): item, = testdir.getitems( """ import pytest class TestClass(object): pytestmark = pytest.mark.skipif("config._hackxyz") def test_func(self): pass > """ ) ../../../../pytest-3.10.1/testing/test_skipping.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________ TestXFail.test_xfail_simple[True] _______________________ self = testdir = strict = True @pytest.mark.parametrize("strict", [True, False]) def test_xfail_simple(self, testdir, strict): item = testdir.getitem( """ import pytest @pytest.mark.xfail(strict=%s) def test_func(): assert 0 """ > % strict ) ../../../../pytest-3.10.1/testing/test_skipping.py:165: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________ TestXFail.test_xfail_simple[False] ______________________ self = testdir = strict = False @pytest.mark.parametrize("strict", [True, False]) def test_xfail_simple(self, testdir, strict): item = testdir.getitem( """ import pytest @pytest.mark.xfail(strict=%s) def test_func(): assert 0 """ > % strict ) ../../../../pytest-3.10.1/testing/test_skipping.py:165: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________________ TestXFail.test_xfail_xpassed _________________________ self = testdir = def test_xfail_xpassed(self, testdir): item = testdir.getitem( """ import pytest @pytest.mark.xfail(reason="this is an xfail") def test_func(): assert 1 > """ ) ../../../../pytest-3.10.1/testing/test_skipping.py:180: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestXFail.test_xfail_using_platform ______________________ self = testdir = def test_xfail_using_platform(self, testdir): """ Verify that platform can be used with xfail statements. """ item = testdir.getitem( """ import pytest @pytest.mark.xfail("platform.platform() == platform.platform()") def test_func(): assert 0 > """ ) ../../../../pytest-3.10.1/testing/test_skipping.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestXFail.test_xfail_xpassed_strict ______________________ self = testdir = def test_xfail_xpassed_strict(self, testdir): item = testdir.getitem( """ import pytest @pytest.mark.xfail(strict=True, reason="nope") def test_func(): assert 1 > """ ) ../../../../pytest-3.10.1/testing/test_skipping.py:212: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________________ TestXFail.test_xfail_run_anyway ________________________ self = testdir = def test_xfail_run_anyway(self, testdir): testdir.makepyfile( """ import pytest @pytest.mark.xfail def test_func(): assert 0 def test_func2(): pytest.xfail("hello") """ ) result = testdir.runpytest("--runxfail") result.stdout.fnmatch_lines( > ["*def test_func():*", "*assert 0*", "*1 failed*1 pass*"] ) E Failed: nomatch: '*def test_func():*' E and: '' E remains unmatched: '*def test_func():*' ../../../../pytest-3.10.1/testing/test_skipping.py:234: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ TestXFail.test_xfail_evalfalse_but_fails ___________________ self = testdir = def test_xfail_evalfalse_but_fails(self, testdir): item = testdir.getitem( """ import pytest @pytest.mark.xfail('False') def test_func(): assert 0 > """ ) ../../../../pytest-3.10.1/testing/test_skipping.py:244: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________ TestXFail.test_xfail_not_run_xfail_reporting _________________ self = testdir = def test_xfail_not_run_xfail_reporting(self, testdir): p = testdir.makepyfile( test_one=""" import pytest @pytest.mark.xfail(run=False, reason="noway") def test_this(): assert 0 @pytest.mark.xfail("True", run=False) def test_this_true(): assert 0 @pytest.mark.xfail("False", run=False, reason="huh") def test_this_false(): assert 1 """ ) result = testdir.runpytest(p, "-rx") result.stdout.fnmatch_lines( [ "*test_one*test_this*", "*NOTRUN*noway", "*test_one*test_this_true*", "*NOTRUN*condition:*True*", > "*1 passed*", ] ) E Failed: nomatch: '*test_one*test_this*' E and: '' E remains unmatched: '*test_one*test_this*' ../../../../pytest-3.10.1/testing/test_skipping.py:288: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ TestXFail.test_xfail_not_run_no_setup_run ___________________ self = testdir = def test_xfail_not_run_no_setup_run(self, testdir): p = testdir.makepyfile( test_one=""" import pytest @pytest.mark.xfail(run=False, reason="hello") def test_this(): assert 0 def setup_module(mod): raise ValueError(42) """ ) result = testdir.runpytest(p, "-rx") result.stdout.fnmatch_lines( > ["*test_one*test_this*", "*NOTRUN*hello", "*1 xfailed*"] ) E Failed: nomatch: '*test_one*test_this*' E and: '' E remains unmatched: '*test_one*test_this*' ../../../../pytest-3.10.1/testing/test_skipping.py:305: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________ TestXFail.test_xfail_xpass __________________________ self = testdir = def test_xfail_xpass(self, testdir): p = testdir.makepyfile( test_one=""" import pytest @pytest.mark.xfail def test_that(): assert 1 """ ) result = testdir.runpytest(p, "-rX") > result.stdout.fnmatch_lines(["*XPASS*test_that*", "*1 xpassed*"]) E Failed: nomatch: '*XPASS*test_that*' E and: '' E remains unmatched: '*XPASS*test_that*' ../../../../pytest-3.10.1/testing/test_skipping.py:318: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ TestXFail.test_xfail_imperative ________________________ self = testdir = def test_xfail_imperative(self, testdir): p = testdir.makepyfile( """ import pytest def test_this(): pytest.xfail("hello") """ ) result = testdir.runpytest(p) > result.stdout.fnmatch_lines(["*1 xfailed*"]) E Failed: nomatch: '*1 xfailed*' E and: '' E remains unmatched: '*1 xfailed*' ../../../../pytest-3.10.1/testing/test_skipping.py:330: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestXFail.test_xfail_imperative_in_setup_function _______________ self = testdir = def test_xfail_imperative_in_setup_function(self, testdir): p = testdir.makepyfile( """ import pytest def setup_function(function): pytest.xfail("hello") def test_this(): assert 0 """ ) result = testdir.runpytest(p) > result.stdout.fnmatch_lines(["*1 xfailed*"]) E Failed: nomatch: '*1 xfailed*' E and: '' E remains unmatched: '*1 xfailed*' ../../../../pytest-3.10.1/testing/test_skipping.py:348: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestXFail.test_dynamic_xfail_no_run ______________________ self = testdir = def test_dynamic_xfail_no_run(self, testdir): p = testdir.makepyfile( """ import pytest @pytest.fixture def arg(request): request.applymarker(pytest.mark.xfail(run=False)) def test_this(arg): assert 0 """ ) result = testdir.runpytest(p, "-rxX") > result.stdout.fnmatch_lines(["*XFAIL*test_this*", "*NOTRUN*"]) E Failed: nomatch: '*XFAIL*test_this*' E and: '' E remains unmatched: '*XFAIL*test_this*' ../../../../pytest-3.10.1/testing/test_skipping.py:386: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________ TestXFail.test_dynamic_xfail_set_during_funcarg_setup _____________ self = testdir = def test_dynamic_xfail_set_during_funcarg_setup(self, testdir): p = testdir.makepyfile( """ import pytest @pytest.fixture def arg(request): request.applymarker(pytest.mark.xfail) def test_this2(arg): assert 0 """ ) result = testdir.runpytest(p) > result.stdout.fnmatch_lines(["*1 xfailed*"]) E Failed: nomatch: '*1 xfailed*' E and: '' E remains unmatched: '*1 xfailed*' ../../../../pytest-3.10.1/testing/test_skipping.py:400: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________ TestXFail.test_xfail_raises[TypeError-TypeError-*1 xfailed*] _________ self = expected = 'TypeError', actual = 'TypeError', matchline = '*1 xfailed*' testdir = @pytest.mark.parametrize( "expected, actual, matchline", [ ("TypeError", "TypeError", "*1 xfailed*"), ("(AttributeError, TypeError)", "TypeError", "*1 xfailed*"), ("TypeError", "IndexError", "*1 failed*"), ("(AttributeError, TypeError)", "IndexError", "*1 failed*"), ], ) def test_xfail_raises(self, expected, actual, matchline, testdir): p = testdir.makepyfile( """ import pytest @pytest.mark.xfail(raises=%s) def test_raises(): raise %s() """ % (expected, actual) ) result = testdir.runpytest(p) > result.stdout.fnmatch_lines([matchline]) E Failed: nomatch: '*1 xfailed*' E and: '' E remains unmatched: '*1 xfailed*' ../../../../pytest-3.10.1/testing/test_skipping.py:422: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestXFail.test_xfail_raises[(AttributeError, TypeError)-TypeError-*1 xfailed*] self = expected = '(AttributeError, TypeError)', actual = 'TypeError' matchline = '*1 xfailed*' testdir = @pytest.mark.parametrize( "expected, actual, matchline", [ ("TypeError", "TypeError", "*1 xfailed*"), ("(AttributeError, TypeError)", "TypeError", "*1 xfailed*"), ("TypeError", "IndexError", "*1 failed*"), ("(AttributeError, TypeError)", "IndexError", "*1 failed*"), ], ) def test_xfail_raises(self, expected, actual, matchline, testdir): p = testdir.makepyfile( """ import pytest @pytest.mark.xfail(raises=%s) def test_raises(): raise %s() """ % (expected, actual) ) result = testdir.runpytest(p) > result.stdout.fnmatch_lines([matchline]) E Failed: nomatch: '*1 xfailed*' E and: '' E remains unmatched: '*1 xfailed*' ../../../../pytest-3.10.1/testing/test_skipping.py:422: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________ TestXFail.test_xfail_raises[TypeError-IndexError-*1 failed*] _________ self = expected = 'TypeError', actual = 'IndexError', matchline = '*1 failed*' testdir = @pytest.mark.parametrize( "expected, actual, matchline", [ ("TypeError", "TypeError", "*1 xfailed*"), ("(AttributeError, TypeError)", "TypeError", "*1 xfailed*"), ("TypeError", "IndexError", "*1 failed*"), ("(AttributeError, TypeError)", "IndexError", "*1 failed*"), ], ) def test_xfail_raises(self, expected, actual, matchline, testdir): p = testdir.makepyfile( """ import pytest @pytest.mark.xfail(raises=%s) def test_raises(): raise %s() """ % (expected, actual) ) result = testdir.runpytest(p) > result.stdout.fnmatch_lines([matchline]) E Failed: nomatch: '*1 failed*' E and: '' E remains unmatched: '*1 failed*' ../../../../pytest-3.10.1/testing/test_skipping.py:422: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestXFail.test_xfail_raises[(AttributeError, TypeError)-IndexError-*1 failed*] self = expected = '(AttributeError, TypeError)', actual = 'IndexError' matchline = '*1 failed*' testdir = @pytest.mark.parametrize( "expected, actual, matchline", [ ("TypeError", "TypeError", "*1 xfailed*"), ("(AttributeError, TypeError)", "TypeError", "*1 xfailed*"), ("TypeError", "IndexError", "*1 failed*"), ("(AttributeError, TypeError)", "IndexError", "*1 failed*"), ], ) def test_xfail_raises(self, expected, actual, matchline, testdir): p = testdir.makepyfile( """ import pytest @pytest.mark.xfail(raises=%s) def test_raises(): raise %s() """ % (expected, actual) ) result = testdir.runpytest(p) > result.stdout.fnmatch_lines([matchline]) E Failed: nomatch: '*1 failed*' E and: '' E remains unmatched: '*1 failed*' ../../../../pytest-3.10.1/testing/test_skipping.py:422: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ TestXFail.test_strict_sanity _________________________ self = testdir = def test_strict_sanity(self, testdir): """sanity check for xfail(strict=True): a failing test should behave exactly like a normal xfail. """ p = testdir.makepyfile( """ import pytest @pytest.mark.xfail(reason='unsupported feature', strict=True) def test_foo(): assert 0 """ ) result = testdir.runpytest(p, "-rxX") > result.stdout.fnmatch_lines(["*XFAIL*", "*unsupported feature*"]) E Failed: nomatch: '*XFAIL*' E and: '' E remains unmatched: '*XFAIL*' ../../../../pytest-3.10.1/testing/test_skipping.py:437: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ TestXFail.test_strict_xfail[True] _______________________ self = testdir = strict = True @pytest.mark.parametrize("strict", [True, False]) def test_strict_xfail(self, testdir, strict): p = testdir.makepyfile( """ import pytest @pytest.mark.xfail(reason='unsupported feature', strict=%s) def test_foo(): with open('foo_executed', 'w'): pass # make sure test executes """ % strict ) result = testdir.runpytest(p, "-rxX") if strict: result.stdout.fnmatch_lines( > ["*test_foo*", "*XPASS(strict)*unsupported feature*"] ) E Failed: nomatch: '*test_foo*' E and: '' E remains unmatched: '*test_foo*' ../../../../pytest-3.10.1/testing/test_skipping.py:455: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ TestXFail.test_strict_xfail[False] ______________________ self = testdir = strict = False @pytest.mark.parametrize("strict", [True, False]) def test_strict_xfail(self, testdir, strict): p = testdir.makepyfile( """ import pytest @pytest.mark.xfail(reason='unsupported feature', strict=%s) def test_foo(): with open('foo_executed', 'w'): pass # make sure test executes """ % strict ) result = testdir.runpytest(p, "-rxX") if strict: result.stdout.fnmatch_lines( ["*test_foo*", "*XPASS(strict)*unsupported feature*"] ) else: result.stdout.fnmatch_lines( [ "*test_strict_xfail*", > "XPASS test_strict_xfail.py::test_foo unsupported feature", ] ) E Failed: nomatch: '*test_strict_xfail*' E and: '' E remains unmatched: '*test_strict_xfail*' ../../../../pytest-3.10.1/testing/test_skipping.py:461: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestXFail.test_strict_xfail_condition[True] __________________ self = testdir = strict = True @pytest.mark.parametrize("strict", [True, False]) def test_strict_xfail_condition(self, testdir, strict): p = testdir.makepyfile( """ import pytest @pytest.mark.xfail(False, reason='unsupported feature', strict=%s) def test_foo(): pass """ % strict ) result = testdir.runpytest(p, "-rxX") > result.stdout.fnmatch_lines("*1 passed*") E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/test_skipping.py:480: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestXFail.test_strict_xfail_condition[False] _________________ self = testdir = strict = False @pytest.mark.parametrize("strict", [True, False]) def test_strict_xfail_condition(self, testdir, strict): p = testdir.makepyfile( """ import pytest @pytest.mark.xfail(False, reason='unsupported feature', strict=%s) def test_foo(): pass """ % strict ) result = testdir.runpytest(p, "-rxX") > result.stdout.fnmatch_lines("*1 passed*") E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/test_skipping.py:480: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestXFail.test_xfail_condition_keyword[True] _________________ self = testdir = strict = True @pytest.mark.parametrize("strict", [True, False]) def test_xfail_condition_keyword(self, testdir, strict): p = testdir.makepyfile( """ import pytest @pytest.mark.xfail(condition=False, reason='unsupported feature', strict=%s) def test_foo(): pass """ % strict ) result = testdir.runpytest(p, "-rxX") > result.stdout.fnmatch_lines("*1 passed*") E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/test_skipping.py:496: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestXFail.test_xfail_condition_keyword[False] _________________ self = testdir = strict = False @pytest.mark.parametrize("strict", [True, False]) def test_xfail_condition_keyword(self, testdir, strict): p = testdir.makepyfile( """ import pytest @pytest.mark.xfail(condition=False, reason='unsupported feature', strict=%s) def test_foo(): pass """ % strict ) result = testdir.runpytest(p, "-rxX") > result.stdout.fnmatch_lines("*1 passed*") E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/test_skipping.py:496: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestXFail.test_strict_xfail_default_from_file[true] ______________ self = testdir = strict_val = 'true' @pytest.mark.parametrize("strict_val", ["true", "false"]) def test_strict_xfail_default_from_file(self, testdir, strict_val): testdir.makeini( """ [pytest] xfail_strict = %s """ % strict_val ) p = testdir.makepyfile( """ import pytest @pytest.mark.xfail(reason='unsupported feature') def test_foo(): pass """ ) result = testdir.runpytest(p, "-rxX") strict = strict_val == "true" > result.stdout.fnmatch_lines("*1 failed*" if strict else "*1 xpassed*") E Failed: nomatch: '*1 failed*' E and: '' E remains unmatched: '*1 failed*' ../../../../pytest-3.10.1/testing/test_skipping.py:518: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestXFail.test_strict_xfail_default_from_file[false] _____________ self = testdir = strict_val = 'false' @pytest.mark.parametrize("strict_val", ["true", "false"]) def test_strict_xfail_default_from_file(self, testdir, strict_val): testdir.makeini( """ [pytest] xfail_strict = %s """ % strict_val ) p = testdir.makepyfile( """ import pytest @pytest.mark.xfail(reason='unsupported feature') def test_foo(): pass """ ) result = testdir.runpytest(p, "-rxX") strict = strict_val == "true" > result.stdout.fnmatch_lines("*1 failed*" if strict else "*1 xpassed*") E Failed: nomatch: '*1 xpassed*' E and: '' E remains unmatched: '*1 xpassed*' ../../../../pytest-3.10.1/testing/test_skipping.py:518: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestXFailwithSetupTeardown.test_failing_setup_issue9 _____________ self = testdir = def test_failing_setup_issue9(self, testdir): testdir.makepyfile( """ import pytest def setup_function(func): assert 0 @pytest.mark.xfail def test_func(): pass """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*1 xfail*"]) E Failed: nomatch: '*1 xfail*' E and: '' E remains unmatched: '*1 xfail*' ../../../../pytest-3.10.1/testing/test_skipping.py:536: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________ TestXFailwithSetupTeardown.test_failing_teardown_issue9 ____________ self = testdir = def test_failing_teardown_issue9(self, testdir): testdir.makepyfile( """ import pytest def teardown_function(func): assert 0 @pytest.mark.xfail def test_func(): pass """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*1 xfail*"]) E Failed: nomatch: '*1 xfail*' E and: '' E remains unmatched: '*1 xfail*' ../../../../pytest-3.10.1/testing/test_skipping.py:551: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ TestSkip.test_skip_class ___________________________ self = testdir = def test_skip_class(self, testdir): testdir.makepyfile( """ import pytest @pytest.mark.skip class TestSomething(object): def test_foo(self): pass def test_bar(self): pass def test_baz(): pass """ ) > rec = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_skipping.py:570: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestSkip.test_skips_on_false_string ______________________ self = testdir = def test_skips_on_false_string(self, testdir): testdir.makepyfile( """ import pytest @pytest.mark.skip('False') def test_foo(): pass """ ) > rec = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_skipping.py:582: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________________ TestSkip.test_arg_as_reason __________________________ self = testdir = def test_arg_as_reason(self, testdir): testdir.makepyfile( """ import pytest @pytest.mark.skip('testing stuff') def test_bar(): pass """ ) result = testdir.runpytest("-rs") > result.stdout.fnmatch_lines(["*testing stuff*", "*1 skipped*"]) E Failed: nomatch: '*testing stuff*' E and: '' E remains unmatched: '*testing stuff*' ../../../../pytest-3.10.1/testing/test_skipping.py:595: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ TestSkip.test_skip_no_reason _________________________ self = testdir = def test_skip_no_reason(self, testdir): testdir.makepyfile( """ import pytest @pytest.mark.skip def test_foo(): pass """ ) result = testdir.runpytest("-rs") > result.stdout.fnmatch_lines(["*unconditional skip*", "*1 skipped*"]) E Failed: nomatch: '*unconditional skip*' E and: '' E remains unmatched: '*unconditional skip*' ../../../../pytest-3.10.1/testing/test_skipping.py:607: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ TestSkip.test_skip_with_reason ________________________ self = testdir = def test_skip_with_reason(self, testdir): testdir.makepyfile( """ import pytest @pytest.mark.skip(reason="for lolz") def test_bar(): pass """ ) result = testdir.runpytest("-rs") > result.stdout.fnmatch_lines(["*for lolz*", "*1 skipped*"]) E Failed: nomatch: '*for lolz*' E and: '' E remains unmatched: '*for lolz*' ../../../../pytest-3.10.1/testing/test_skipping.py:619: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestSkip.test_only_skips_marked_test _____________________ self = testdir = def test_only_skips_marked_test(self, testdir): testdir.makepyfile( """ import pytest @pytest.mark.skip def test_foo(): pass @pytest.mark.skip(reason="nothing in particular") def test_bar(): pass def test_baz(): assert True """ ) result = testdir.runpytest("-rs") > result.stdout.fnmatch_lines(["*nothing in particular*", "*1 passed*2 skipped*"]) E Failed: nomatch: '*nothing in particular*' E and: '' E remains unmatched: '*nothing in particular*' ../../../../pytest-3.10.1/testing/test_skipping.py:636: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ TestSkip.test_strict_and_skip _________________________ self = testdir = def test_strict_and_skip(self, testdir): testdir.makepyfile( """ import pytest @pytest.mark.skip def test_hello(): pass """ ) result = testdir.runpytest("-rs") > result.stdout.fnmatch_lines(["*unconditional skip*", "*1 skipped*"]) E Failed: nomatch: '*unconditional skip*' E and: '' E remains unmatched: '*unconditional skip*' ../../../../pytest-3.10.1/testing/test_skipping.py:648: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ TestSkipif.test_skipif_conditional ______________________ self = testdir = def test_skipif_conditional(self, testdir): item = testdir.getitem( """ import pytest @pytest.mark.skipif("hasattr(os, 'sep')") def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_skipping.py:659: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________ TestSkipif.test_skipif_reporting["hasattr(sys, 'platform')"] _________ self = testdir = params = '"hasattr(sys, \'platform\')"' @pytest.mark.parametrize( "params", ["\"hasattr(sys, 'platform')\"", 'True, reason="invalid platform"'] ) def test_skipif_reporting(self, testdir, params): p = testdir.makepyfile( test_foo=""" import pytest @pytest.mark.skipif(%(params)s) def test_that(): assert 0 """ % dict(params=params) ) result = testdir.runpytest(p, "-s", "-rs") > result.stdout.fnmatch_lines(["*SKIP*1*test_foo.py*platform*", "*1 skipped*"]) E Failed: nomatch: '*SKIP*1*test_foo.py*platform*' E and: '' E remains unmatched: '*SKIP*1*test_foo.py*platform*' ../../../../pytest-3.10.1/testing/test_skipping.py:678: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______ TestSkipif.test_skipif_reporting[True, reason="invalid platform"] _______ self = testdir = params = 'True, reason="invalid platform"' @pytest.mark.parametrize( "params", ["\"hasattr(sys, 'platform')\"", 'True, reason="invalid platform"'] ) def test_skipif_reporting(self, testdir, params): p = testdir.makepyfile( test_foo=""" import pytest @pytest.mark.skipif(%(params)s) def test_that(): assert 0 """ % dict(params=params) ) result = testdir.runpytest(p, "-s", "-rs") > result.stdout.fnmatch_lines(["*SKIP*1*test_foo.py*platform*", "*1 skipped*"]) E Failed: nomatch: '*SKIP*1*test_foo.py*platform*' E and: '' E remains unmatched: '*SKIP*1*test_foo.py*platform*' ../../../../pytest-3.10.1/testing/test_skipping.py:678: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ TestSkipif.test_skipif_using_platform _____________________ self = testdir = def test_skipif_using_platform(self, testdir): item = testdir.getitem( """ import pytest @pytest.mark.skipif("platform.platform() == platform.platform()") def test_func(): pass > """ ) ../../../../pytest-3.10.1/testing/test_skipping.py:688: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________ TestSkipif.test_skipif_reporting_multiple[skipif-SKIP-skipped] ________ self = testdir = marker = 'skipif', msg1 = 'SKIP', msg2 = 'skipped' @pytest.mark.parametrize( "marker, msg1, msg2", [("skipif", "SKIP", "skipped"), ("xfail", "XPASS", "xpassed")], ) def test_skipif_reporting_multiple(self, testdir, marker, msg1, msg2): testdir.makepyfile( test_foo=""" import pytest @pytest.mark.{marker}(False, reason='first_condition') @pytest.mark.{marker}(True, reason='second_condition') def test_foobar(): assert 1 """.format( marker=marker ) ) result = testdir.runpytest("-s", "-rsxX") result.stdout.fnmatch_lines( [ "*{msg1}*test_foo.py*second_condition*".format(msg1=msg1), > "*1 {msg2}*".format(msg2=msg2), ] ) E Failed: nomatch: '*SKIP*test_foo.py*second_condition*' E and: '' E remains unmatched: '*SKIP*test_foo.py*second_condition*' ../../../../pytest-3.10.1/testing/test_skipping.py:712: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________ TestSkipif.test_skipif_reporting_multiple[xfail-XPASS-xpassed] ________ self = testdir = marker = 'xfail', msg1 = 'XPASS', msg2 = 'xpassed' @pytest.mark.parametrize( "marker, msg1, msg2", [("skipif", "SKIP", "skipped"), ("xfail", "XPASS", "xpassed")], ) def test_skipif_reporting_multiple(self, testdir, marker, msg1, msg2): testdir.makepyfile( test_foo=""" import pytest @pytest.mark.{marker}(False, reason='first_condition') @pytest.mark.{marker}(True, reason='second_condition') def test_foobar(): assert 1 """.format( marker=marker ) ) result = testdir.runpytest("-s", "-rsxX") result.stdout.fnmatch_lines( [ "*{msg1}*test_foo.py*second_condition*".format(msg1=msg1), > "*1 {msg2}*".format(msg2=msg2), ] ) E Failed: nomatch: '*XPASS*test_foo.py*second_condition*' E and: '' E remains unmatched: '*XPASS*test_foo.py*second_condition*' ../../../../pytest-3.10.1/testing/test_skipping.py:712: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ test_skip_not_report_default _________________________ testdir = def test_skip_not_report_default(testdir): p = testdir.makepyfile( test_one=""" import pytest def test_this(): pytest.skip("hello") """ ) result = testdir.runpytest(p, "-v") result.stdout.fnmatch_lines( [ # "*HINT*use*-r*", > "*1 skipped*" ] ) E Failed: nomatch: '*1 skipped*' E and: '' E remains unmatched: '*1 skipped*' ../../../../pytest-3.10.1/testing/test_skipping.py:730: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________________ test_skipif_class _______________________________ testdir = def test_skipif_class(testdir): p = testdir.makepyfile( """ import pytest class TestClass(object): pytestmark = pytest.mark.skipif("True") def test_that(self): assert 0 def test_though(self): assert 0 """ ) result = testdir.runpytest(p) > result.stdout.fnmatch_lines(["*2 skipped*"]) E Failed: nomatch: '*2 skipped*' E and: '' E remains unmatched: '*2 skipped*' ../../../../pytest-3.10.1/testing/test_skipping.py:749: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ test_skipped_reasons_functional ________________________ testdir = def test_skipped_reasons_functional(testdir): testdir.makepyfile( test_one=""" from conftest import doskip def setup_function(func): doskip() def test_func(): pass class TestClass(object): def test_method(self): doskip() """, conftest=""" import pytest def doskip(): pytest.skip('test') """, ) result = testdir.runpytest("-rs") > result.stdout.fnmatch_lines(["*SKIP*2*conftest.py:4: test"]) E Failed: nomatch: '*SKIP*2*conftest.py:4: test' E and: '' E remains unmatched: '*SKIP*2*conftest.py:4: test' ../../../../pytest-3.10.1/testing/test_skipping.py:804: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________________ test_skipped_folding _____________________________ testdir = def test_skipped_folding(testdir): testdir.makepyfile( test_one=""" import pytest pytestmark = pytest.mark.skip("Folding") def setup_function(func): pass def test_func(): pass class TestClass(object): def test_method(self): pass """ ) result = testdir.runpytest("-rs") > result.stdout.fnmatch_lines(["*SKIP*2*test_one.py: Folding"]) E Failed: nomatch: '*SKIP*2*test_one.py: Folding' E and: '' E remains unmatched: '*SKIP*2*test_one.py: Folding' ../../../../pytest-3.10.1/testing/test_skipping.py:823: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________________ test_reportchars _______________________________ testdir = def test_reportchars(testdir): testdir.makepyfile( """ import pytest def test_1(): assert 0 @pytest.mark.xfail def test_2(): assert 0 @pytest.mark.xfail def test_3(): pass def test_4(): pytest.skip("four") """ ) result = testdir.runpytest("-rfxXs") result.stdout.fnmatch_lines( > ["FAIL*test_1*", "XFAIL*test_2*", "XPASS*test_3*", "SKIP*four*"] ) E Failed: nomatch: 'FAIL*test_1*' E and: '' E remains unmatched: 'FAIL*test_1*' ../../../../pytest-3.10.1/testing/test_skipping.py:845: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________________ test_reportchars_error ____________________________ testdir = def test_reportchars_error(testdir): testdir.makepyfile( conftest=""" def pytest_runtest_teardown(): assert 0 """, test_simple=""" def test_foo(): pass """, ) result = testdir.runpytest("-rE") > result.stdout.fnmatch_lines(["ERROR*test_foo*"]) E Failed: nomatch: 'ERROR*test_foo*' E and: '' E remains unmatched: 'ERROR*test_foo*' ../../../../pytest-3.10.1/testing/test_skipping.py:861: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________________ test_reportchars_all _____________________________ testdir = def test_reportchars_all(testdir): testdir.makepyfile( """ import pytest def test_1(): assert 0 @pytest.mark.xfail def test_2(): assert 0 @pytest.mark.xfail def test_3(): pass def test_4(): pytest.skip("four") """ ) result = testdir.runpytest("-ra") result.stdout.fnmatch_lines( > ["FAIL*test_1*", "SKIP*four*", "XFAIL*test_2*", "XPASS*test_3*"] ) E Failed: nomatch: 'FAIL*test_1*' E and: '' E remains unmatched: 'FAIL*test_1*' ../../../../pytest-3.10.1/testing/test_skipping.py:882: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________ test_reportchars_all_error __________________________ testdir = def test_reportchars_all_error(testdir): testdir.makepyfile( conftest=""" def pytest_runtest_teardown(): assert 0 """, test_simple=""" def test_foo(): pass """, ) result = testdir.runpytest("-ra") > result.stdout.fnmatch_lines(["ERROR*test_foo*"]) E Failed: nomatch: 'ERROR*test_foo*' E and: '' E remains unmatched: 'ERROR*test_foo*' ../../../../pytest-3.10.1/testing/test_skipping.py:898: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ test_errors_in_xfail_skip_expressions _____________________ testdir = @pytest.mark.xfail("hasattr(sys, 'pypy_version_info')") def test_errors_in_xfail_skip_expressions(testdir): testdir.makepyfile( """ import pytest @pytest.mark.skipif("asd") def test_nameerror(): pass @pytest.mark.xfail("syntax error") def test_syntax(): pass def test_func(): pass """ ) result = testdir.runpytest() markline = " ^" if sys.platform.startswith("java"): # XXX report this to java markline = "*" + markline[8:] result.stdout.fnmatch_lines( [ "*ERROR*test_nameerror*", "*evaluating*skipif*expression*", "*asd*", "*ERROR*test_syntax*", "*evaluating*xfail*expression*", " syntax error", markline, "SyntaxError: invalid syntax", > "*1 pass*2 error*", ] ) E Failed: nomatch: '*ERROR*test_nameerror*' E and: '' E remains unmatched: '*ERROR*test_nameerror*' ../../../../pytest-3.10.1/testing/test_skipping.py:932: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ test_xfail_skipif_with_globals ________________________ testdir = def test_xfail_skipif_with_globals(testdir): testdir.makepyfile( """ import pytest x = 3 @pytest.mark.skipif("x == 3") def test_skip1(): pass @pytest.mark.xfail("x == 3") def test_boolean(): assert 0 """ ) result = testdir.runpytest("-rsx") > result.stdout.fnmatch_lines(["*SKIP*x == 3*", "*XFAIL*test_boolean*", "*x == 3*"]) E Failed: nomatch: '*SKIP*x == 3*' E and: '' E remains unmatched: '*SKIP*x == 3*' ../../../../pytest-3.10.1/testing/test_skipping.py:951: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ test_direct_gives_error ____________________________ testdir = def test_direct_gives_error(testdir): testdir.makepyfile( """ import pytest @pytest.mark.skipif(True) def test_skip1(): pass """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*1 error*"]) E Failed: nomatch: '*1 error*' E and: '' E remains unmatched: '*1 error*' ../../../../pytest-3.10.1/testing/test_skipping.py:964: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________________ test_default_markers _____________________________ testdir = def test_default_markers(testdir): result = testdir.runpytest("--markers") result.stdout.fnmatch_lines( [ "*skipif(*condition)*skip*", > "*xfail(*condition, reason=None, run=True, raises=None, strict=False)*expected failure*", ] ) E Failed: nomatch: '*skipif(*condition)*skip*' E and: '' E remains unmatched: '*skipif(*condition)*skip*' ../../../../pytest-3.10.1/testing/test_skipping.py:972: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ test_xfail_test_setup_exception ________________________ testdir = def test_xfail_test_setup_exception(testdir): testdir.makeconftest( """ def pytest_runtest_setup(): 0 / 0 """ ) p = testdir.makepyfile( """ import pytest @pytest.mark.xfail def test_func(): assert 0 """ ) result = testdir.runpytest(p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c61e49b90>.ret ../../../../pytest-3.10.1/testing/test_skipping.py:993: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ test_imperativeskip_on_xfail_test _______________________ testdir = def test_imperativeskip_on_xfail_test(testdir): testdir.makepyfile( """ import pytest @pytest.mark.xfail def test_that_fails(): assert 0 @pytest.mark.skipif("True") def test_hello(): pass """ ) testdir.makeconftest( """ import pytest def pytest_runtest_setup(item): pytest.skip("abc") """ ) result = testdir.runpytest("-rsxX") result.stdout.fnmatch_lines_random( """ *SKIP*abc* *SKIP*condition: True* *2 skipped* > """ ) ../../../../pytest-3.10.1/testing/test_skipping.py:1024: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1280: in fnmatch_lines_random self._match_lines_random(lines2, fnmatch) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.LineMatcher object at 0x7f5c61cf5c50> lines2 = ['*SKIP*abc*', '*SKIP*condition: True*', '*2 skipped*'] match_func = def _match_lines_random(self, lines2, match_func): """Check lines exist in the output. The argument is a list of lines which have to occur in the output, in any order. Each line can contain glob whildcards. """ lines2 = self._getlines(lines2) for line in lines2: for x in self.lines: if line == x or match_func(x, line): self._log("matched: ", repr(line)) break else: self._log("line %r not found in output" % line) > raise ValueError(self._log_text) E ValueError: line '*SKIP*abc*' not found in output ../../../../pytest-3.10.1/src/_pytest/pytester.py:1306: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ TestBooleanCondition.test_skipif _______________________ self = testdir = def test_skipif(self, testdir): testdir.makepyfile( """ import pytest @pytest.mark.skipif(True, reason="True123") def test_func1(): pass @pytest.mark.skipif(False, reason="True123") def test_func2(): pass """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( """ *1 passed*1 skipped* > """ ) E Failed: nomatch: '*1 passed*1 skipped*' E and: '' E remains unmatched: '*1 passed*1 skipped*' ../../../../pytest-3.10.1/testing/test_skipping.py:1045: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ TestBooleanCondition.test_skipif_noreason ___________________ self = testdir = def test_skipif_noreason(self, testdir): testdir.makepyfile( """ import pytest @pytest.mark.skipif(True) def test_func(): pass """ ) result = testdir.runpytest("-rs") result.stdout.fnmatch_lines( """ *1 error* > """ ) E Failed: nomatch: '*1 error*' E and: '' E remains unmatched: '*1 error*' ../../../../pytest-3.10.1/testing/test_skipping.py:1061: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ TestBooleanCondition.test_xfail ________________________ self = testdir = def test_xfail(self, testdir): testdir.makepyfile( """ import pytest @pytest.mark.xfail(True, reason="True123") def test_func(): assert 0 """ ) result = testdir.runpytest("-rxs") result.stdout.fnmatch_lines( """ *XFAIL* *True123* *1 xfail* > """ ) E Failed: nomatch: '*XFAIL*' E and: '' E remains unmatched: '*XFAIL*' ../../../../pytest-3.10.1/testing/test_skipping.py:1079: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________________ test_xfail_item ________________________________ testdir = def test_xfail_item(testdir): # Ensure pytest.xfail works with non-Python Item testdir.makeconftest( """ import pytest class MyItem(pytest.Item): nodeid = 'foo' def runtest(self): pytest.xfail("Expected Failure") def pytest_collect_file(path, parent): return MyItem("foo", parent) """ ) > result = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_skipping.py:1098: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________________ test_module_level_skip_error _________________________ testdir = def test_module_level_skip_error(testdir): """ Verify that using pytest.skip at module level causes a collection error """ testdir.makepyfile( """ import pytest @pytest.skip def test_func(): assert True """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines("*Using pytest.skip outside of a test is not allowed*") E Failed: nomatch: '*Using pytest.skip outside of a test is not allowed*' E and: '' E remains unmatched: '*Using pytest.skip outside of a test is not allowed*' ../../../../pytest-3.10.1/testing/test_skipping.py:1118: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ test_module_level_skip_with_allow_module_level ________________ testdir = def test_module_level_skip_with_allow_module_level(testdir): """ Verify that using pytest.skip(allow_module_level=True) is allowed """ testdir.makepyfile( """ import pytest pytest.skip("skip_module_level", allow_module_level=True) def test_func(): assert 0 """ ) result = testdir.runpytest("-rxs") > result.stdout.fnmatch_lines("*SKIP*skip_module_level") E Failed: nomatch: '*SKIP*skip_module_level' E and: '' E remains unmatched: '*SKIP*skip_module_level' ../../../../pytest-3.10.1/testing/test_skipping.py:1135: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ test_invalid_skip_keyword_parameter ______________________ testdir = def test_invalid_skip_keyword_parameter(testdir): """ Verify that using pytest.skip() with unknown parameter raises an error """ testdir.makepyfile( """ import pytest pytest.skip("skip_module_level", unknown=1) def test_func(): assert 0 """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines("*TypeError:*['unknown']*") E Failed: nomatch: "*TypeError:*['unknown']*" E and: '' E remains unmatched: "*TypeError:*['unknown']*" ../../../../pytest-3.10.1/testing/test_skipping.py:1152: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________________ test_mark_xfail_item _____________________________ testdir = def test_mark_xfail_item(testdir): # Ensure pytest.mark.xfail works with non-Python Item testdir.makeconftest( """ import pytest class MyItem(pytest.Item): nodeid = 'foo' def setup(self): marker = pytest.mark.xfail(True, reason="Expected failure") self.add_marker(marker) def runtest(self): assert False def pytest_collect_file(path, parent): return MyItem("foo", parent) """ ) > result = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_skipping.py:1173: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________________ test_summary_list_after_errors ________________________ testdir = def test_summary_list_after_errors(testdir): """Ensure the list of errors/fails/xfails/skips appears after tracebacks in terminal reporting.""" testdir.makepyfile( """ import pytest def test_fail(): assert 0 """ ) result = testdir.runpytest("-ra") result.stdout.fnmatch_lines( [ "=* FAILURES *=", "*= short test summary info =*", > "FAIL test_summary_list_after_errors.py::test_fail", ] ) E Failed: nomatch: '=* FAILURES *=' E and: '' E remains unmatched: '=* FAILURES *=' ../../../../pytest-3.10.1/testing/test_skipping.py:1194: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________ test_run_without_stepwise ___________________________ stepwise_testdir = def test_run_without_stepwise(stepwise_testdir): result = stepwise_testdir.runpytest("-v", "--strict", "--fail") > result.stdout.fnmatch_lines(["*test_success_before_fail PASSED*"]) E Failed: nomatch: '*test_success_before_fail PASSED*' E and: '' E remains unmatched: '*test_success_before_fail PASSED*' ../../../../pytest-3.10.1/testing/test_stepwise.py:73: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ test_fail_and_continue_with_stepwise _____________________ stepwise_testdir = def test_fail_and_continue_with_stepwise(stepwise_testdir): # Run the tests with a failing second test. result = stepwise_testdir.runpytest("-v", "--strict", "--stepwise", "--fail") > assert not result.stderr.str() E assert not 'Traceback (most recent call last):\n File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in ...can be omitted, but when supplied should be a type (for example `str` or `int`). (options: (\'--timeout_method\',))\n' E + where 'Traceback (most recent call last):\n File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in ...can be omitted, but when supplied should be a type (for example `str` or `int`). (options: (\'--timeout_method\',))\n' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c619f9890>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c619f9890> = <_pytest.pytester.RunResult object at 0x7f5c61c34c10>.stderr ../../../../pytest-3.10.1/testing/test_stepwise.py:81: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________ test_run_with_skip_option ___________________________ stepwise_testdir = def test_run_with_skip_option(stepwise_testdir): result = stepwise_testdir.runpytest( "-v", "--strict", "--stepwise", "--stepwise-skip", "--fail", "--fail-last" ) > assert not result.stderr.str() E assert not 'Traceback (most recent call last):\n File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in ...can be omitted, but when supplied should be a type (for example `str` or `int`). (options: (\'--timeout_method\',))\n' E + where 'Traceback (most recent call last):\n File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in ...can be omitted, but when supplied should be a type (for example `str` or `int`). (options: (\'--timeout_method\',))\n' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c624cd090>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c624cd090> = <_pytest.pytester.RunResult object at 0x7f5c61d4dd10>.stderr ../../../../pytest-3.10.1/testing/test_stepwise.py:104: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________________ test_fail_on_errors ______________________________ error_testdir = def test_fail_on_errors(error_testdir): result = error_testdir.runpytest("-v", "--strict", "--stepwise") > assert not result.stderr.str() E assert not 'Traceback (most recent call last):\n File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in ...can be omitted, but when supplied should be a type (for example `str` or `int`). (options: (\'--timeout_method\',))\n' E + where 'Traceback (most recent call last):\n File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in ...can be omitted, but when supplied should be a type (for example `str` or `int`). (options: (\'--timeout_method\',))\n' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c61a4c910>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c61a4c910> = <_pytest.pytester.RunResult object at 0x7f5c61fa9410>.stderr ../../../../pytest-3.10.1/testing/test_stepwise.py:117: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________________ test_change_testfile _____________________________ stepwise_testdir = def test_change_testfile(stepwise_testdir): result = stepwise_testdir.runpytest( "-v", "--strict", "--stepwise", "--fail", "test_a.py" ) > assert not result.stderr.str() E assert not 'Traceback (most recent call last):\n File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in ...can be omitted, but when supplied should be a type (for example `str` or `int`). (options: (\'--timeout_method\',))\n' E + where 'Traceback (most recent call last):\n File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in ...can be omitted, but when supplied should be a type (for example `str` or `int`). (options: (\'--timeout_method\',))\n' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c61b1f750>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c61b1f750> = <_pytest.pytester.RunResult object at 0x7f5c624c6210>.stderr ../../../../pytest-3.10.1/testing/test_stepwise.py:128: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ test_stop_on_collection_errors ________________________ broken_testdir = def test_stop_on_collection_errors(broken_testdir): result = broken_testdir.runpytest( "-v", "--strict", "--stepwise", "working_testfile.py", "broken_testfile.py" ) stdout = result.stdout.str() > assert "errors during collection" in stdout E AssertionError: assert 'errors during collection' in '' ../../../../pytest-3.10.1/testing/test_stepwise.py:148: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ TestCollectonly.test_collectonly_basic ____________________ self = testdir = def test_collectonly_basic(self, testdir): testdir.makepyfile( """ def test_func(): pass """ ) result = testdir.runpytest("--collect-only") result.stdout.fnmatch_lines( > ["", " "] ) E Failed: nomatch: "" E and: '' E remains unmatched: "" ../../../../pytest-3.10.1/testing/test_terminal.py:266: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestCollectonly.test_collectonly_skipped_module ________________ self = testdir = def test_collectonly_skipped_module(self, testdir): testdir.makepyfile( """ import pytest pytest.skip("hello") """ ) result = testdir.runpytest("--collect-only", "-rs") > result.stdout.fnmatch_lines(["*ERROR collecting*"]) E Failed: nomatch: '*ERROR collecting*' E and: '' E remains unmatched: '*ERROR collecting*' ../../../../pytest-3.10.1/testing/test_terminal.py:277: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestCollectonly.test_collectonly_failed_module ________________ self = testdir = def test_collectonly_failed_module(self, testdir): testdir.makepyfile("""raise ValueError(0)""") result = testdir.runpytest("--collect-only") > result.stdout.fnmatch_lines(["*raise ValueError*", "*1 error*"]) E Failed: nomatch: '*raise ValueError*' E and: '' E remains unmatched: '*raise ValueError*' ../../../../pytest-3.10.1/testing/test_terminal.py:282: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ TestCollectonly.test_collectonly_fatal ____________________ self = testdir = def test_collectonly_fatal(self, testdir): testdir.makeconftest( """ def pytest_collectstart(collector): assert 0, "urgs" """ ) result = testdir.runpytest("--collect-only") > result.stdout.fnmatch_lines(["*INTERNAL*args*"]) E Failed: nomatch: '*INTERNAL*args*' E and: '' E remains unmatched: '*INTERNAL*args*' ../../../../pytest-3.10.1/testing/test_terminal.py:292: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ TestCollectonly.test_collectonly_simple ____________________ self = testdir = def test_collectonly_simple(self, testdir): p = testdir.makepyfile( """ def test_func1(): pass class TestClass(object): def test_method(self): pass """ ) result = testdir.runpytest("--collect-only", p) # assert stderr.startswith("inserting into sys.path") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c61c02e90>.ret ../../../../pytest-3.10.1/testing/test_terminal.py:307: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ TestCollectonly.test_collectonly_error ____________________ self = testdir = def test_collectonly_error(self, testdir): p = testdir.makepyfile("import Errlkjqweqwe") result = testdir.runpytest("--collect-only", p) > assert result.ret == 2 E assert 3 == 2 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c618c9510>.ret ../../../../pytest-3.10.1/testing/test_terminal.py:321: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestCollectonly.test_collectonly_missing_path _________________ self = testdir = def test_collectonly_missing_path(self, testdir): """this checks issue 115, failure in parseargs will cause session not to have the items attribute """ result = testdir.runpytest("--collect-only", "uhm_missing_path") > assert result.ret == 4 E assert 3 == 4 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63bb2250>.ret ../../../../pytest-3.10.1/testing/test_terminal.py:339: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ TestCollectonly.test_collectonly_quiet ____________________ self = testdir = def test_collectonly_quiet(self, testdir): testdir.makepyfile("def test_foo(): pass") result = testdir.runpytest("--collect-only", "-q") > result.stdout.fnmatch_lines(["*test_foo*"]) E Failed: nomatch: '*test_foo*' E and: '' E remains unmatched: '*test_foo*' ../../../../pytest-3.10.1/testing/test_terminal.py:345: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestCollectonly.test_collectonly_more_quiet __________________ self = testdir = def test_collectonly_more_quiet(self, testdir): testdir.makepyfile(test_fun="def test_foo(): pass") result = testdir.runpytest("--collect-only", "-qq") > result.stdout.fnmatch_lines(["*test_fun.py: 1*"]) E Failed: nomatch: '*test_fun.py: 1*' E and: '' E remains unmatched: '*test_fun.py: 1*' ../../../../pytest-3.10.1/testing/test_terminal.py:350: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestFixtureReporting.test_setup_fixture_error _________________ self = testdir = def test_setup_fixture_error(self, testdir): testdir.makepyfile( """ def setup_function(function): print ("setup func") assert 0 def test_nada(): pass """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ "*ERROR at setup of test_nada*", "*setup_function(function):*", "*setup func*", "*assert 0*", > "*1 error*", ] ) E Failed: nomatch: '*ERROR at setup of test_nada*' E and: '' E remains unmatched: '*ERROR at setup of test_nada*' ../../../../pytest-3.10.1/testing/test_terminal.py:381: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestFixtureReporting.test_teardown_fixture_error _______________ self = testdir = def test_teardown_fixture_error(self, testdir): testdir.makepyfile( """ def test_nada(): pass def teardown_function(function): print ("teardown func") assert 0 """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ "*ERROR at teardown*", "*teardown_function(function):*", "*assert 0*", "*Captured stdout*", "*teardown func*", > "*1 passed*1 error*", ] ) E Failed: nomatch: '*ERROR at teardown*' E and: '' E remains unmatched: '*ERROR at teardown*' ../../../../pytest-3.10.1/testing/test_terminal.py:404: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______ TestFixtureReporting.test_teardown_fixture_error_and_test_failure _______ self = testdir = def test_teardown_fixture_error_and_test_failure(self, testdir): testdir.makepyfile( """ def test_fail(): assert 0, "failingfunc" def teardown_function(function): print ("teardown func") assert False """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ "*ERROR at teardown of test_fail*", "*teardown_function(function):*", "*assert False*", "*Captured stdout*", "*teardown func*", "*test_fail*", "*def test_fail():", "*failingfunc*", > "*1 failed*1 error*", ] ) E Failed: nomatch: '*ERROR at teardown of test_fail*' E and: '' E remains unmatched: '*ERROR at teardown of test_fail*' ../../../../pytest-3.10.1/testing/test_terminal.py:430: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______ TestFixtureReporting.test_setup_teardown_output_and_test_failure _______ self = testdir = def test_setup_teardown_output_and_test_failure(self, testdir): """ Test for issue #442 """ testdir.makepyfile( """ def setup_function(function): print ("setup func") def test_fail(): assert 0, "failingfunc" def teardown_function(function): print ("teardown func") """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ "*test_fail*", "*def test_fail():", "*failingfunc*", "*Captured stdout setup*", "*setup func*", "*Captured stdout teardown*", "*teardown func*", > "*1 failed*", ] ) E Failed: nomatch: '*test_fail*' E and: '' E remains unmatched: '*test_fail*' ../../../../pytest-3.10.1/testing/test_terminal.py:458: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________ test_fail_extra_reporting ___________________________ testdir = def test_fail_extra_reporting(testdir): testdir.makepyfile("def test_this(): assert 0") result = testdir.runpytest() assert "short test summary" not in result.stdout.str() result = testdir.runpytest("-rf") > result.stdout.fnmatch_lines(["*test summary*", "FAIL*test_fail_extra_reporting*"]) E Failed: nomatch: '*test summary*' E and: '' E remains unmatched: '*test summary*' ../../../../pytest-3.10.1/testing/test_terminal.py:665: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________ test_pass_extra_reporting ___________________________ testdir = def test_pass_extra_reporting(testdir): testdir.makepyfile("def test_this(): assert 1") result = testdir.runpytest() assert "short test summary" not in result.stdout.str() result = testdir.runpytest("-rp") > result.stdout.fnmatch_lines(["*test summary*", "PASS*test_pass_extra_reporting*"]) E Failed: nomatch: '*test summary*' E and: '' E remains unmatched: '*test summary*' ../../../../pytest-3.10.1/testing/test_terminal.py:679: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________ test_pass_output_reporting __________________________ testdir = def test_pass_output_reporting(testdir): testdir.makepyfile( """ def test_pass_has_output(): print("Four score and seven years ago...") def test_pass_no_output(): pass """ ) result = testdir.runpytest() s = result.stdout.str() assert "test_pass_has_output" not in s assert "Four score and seven years ago..." not in s assert "test_pass_no_output" not in s result = testdir.runpytest("-rP") result.stdout.fnmatch_lines( > ["*test_pass_has_output*", "Four score and seven years ago..."] ) E Failed: nomatch: '*test_pass_has_output*' E and: '' E remains unmatched: '*test_pass_has_output*' ../../../../pytest-3.10.1/testing/test_terminal.py:704: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________________ test_color_yes ________________________________ testdir = def test_color_yes(testdir): testdir.makepyfile("def test_this(): assert 1") result = testdir.runpytest("--color=yes") > assert "test session starts" in result.stdout.str() E AssertionError: assert 'test session starts' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c62730d10>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c62730d10> = <_pytest.pytester.RunResult object at 0x7f5c61bb7610>.stdout ../../../../pytest-3.10.1/testing/test_terminal.py:712: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________________ test_color_no _________________________________ testdir = def test_color_no(testdir): testdir.makepyfile("def test_this(): assert 1") result = testdir.runpytest("--color=no") > assert "test session starts" in result.stdout.str() E AssertionError: assert 'test session starts' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c61fa6a50>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c61fa6a50> = <_pytest.pytester.RunResult object at 0x7f5c62743450>.stdout ../../../../pytest-3.10.1/testing/test_terminal.py:719: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ test_color_yes_collection_on_non_atty[True] __________________ testdir = verbose = True @pytest.mark.parametrize("verbose", [True, False]) def test_color_yes_collection_on_non_atty(testdir, verbose): """skip collect progress report when working on non-terminals. #1397 """ testdir.makepyfile( """ import pytest @pytest.mark.parametrize('i', range(10)) def test_this(i): assert 1 """ ) args = ["--color=yes"] if verbose: args.append("-vv") result = testdir.runpytest(*args) > assert "test session starts" in result.stdout.str() E AssertionError: assert 'test session starts' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c61d76310>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c61d76310> = <_pytest.pytester.RunResult object at 0x7f5c61d56250>.stdout ../../../../pytest-3.10.1/testing/test_terminal.py:740: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ test_color_yes_collection_on_non_atty[False] _________________ testdir = verbose = False @pytest.mark.parametrize("verbose", [True, False]) def test_color_yes_collection_on_non_atty(testdir, verbose): """skip collect progress report when working on non-terminals. #1397 """ testdir.makepyfile( """ import pytest @pytest.mark.parametrize('i', range(10)) def test_this(i): assert 1 """ ) args = ["--color=yes"] if verbose: args.append("-vv") result = testdir.runpytest(*args) > assert "test session starts" in result.stdout.str() E AssertionError: assert 'test session starts' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c618c9810>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c618c9810> = <_pytest.pytester.RunResult object at 0x7f5c61ef1610>.stdout ../../../../pytest-3.10.1/testing/test_terminal.py:740: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ test_terminalreporter_reportopt_addopts ____________________ testdir = def test_terminalreporter_reportopt_addopts(testdir): testdir.makeini("[pytest]\naddopts=-rs") testdir.makepyfile( """ import pytest @pytest.fixture def tr(request): tr = request.config.pluginmanager.getplugin("terminalreporter") return tr def test_opt(tr): assert tr.hasopt('skipped') assert not tr.hasopt('qwe') """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/test_terminal.py:789: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________________ test_tbstyle_short ______________________________ testdir = def test_tbstyle_short(testdir): p = testdir.makepyfile( """ import pytest @pytest.fixture def arg(request): return 42 def test_opt(arg): x = 0 assert x """ ) result = testdir.runpytest("--tb=short") s = result.stdout.str() assert "arg = 42" not in s assert "x = 0" not in s > result.stdout.fnmatch_lines(["*%s:8*" % p.basename, " assert x", "E assert*"]) E Failed: nomatch: '*test_tbstyle_short.py:8*' E and: '' E remains unmatched: '*test_tbstyle_short.py:8*' ../../../../pytest-3.10.1/testing/test_terminal.py:809: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________________ test_traceconfig _______________________________ testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c61e0cb90> def test_traceconfig(testdir, monkeypatch): result = testdir.runpytest("--traceconfig") > result.stdout.fnmatch_lines(["*active plugins*"]) E Failed: nomatch: '*active plugins*' E and: '' E remains unmatched: '*active plugins*' ../../../../pytest-3.10.1/testing/test_terminal.py:818: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestGenericReporting.test_collect_fail[default] ________________ self = testdir = option = def test_collect_fail(self, testdir, option): testdir.makepyfile("import xyz\n") result = testdir.runpytest(*option.args) result.stdout.fnmatch_lines( > ["ImportError while importing*", "*No module named *xyz*", "*1 error*"] ) E Failed: nomatch: 'ImportError while importing*' E and: '' E remains unmatched: 'ImportError while importing*' ../../../../pytest-3.10.1/testing/test_terminal.py:831: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestGenericReporting.test_collect_fail[verbose] ________________ self = testdir = option = def test_collect_fail(self, testdir, option): testdir.makepyfile("import xyz\n") result = testdir.runpytest(*option.args) result.stdout.fnmatch_lines( > ["ImportError while importing*", "*No module named *xyz*", "*1 error*"] ) E Failed: nomatch: 'ImportError while importing*' E and: '' E remains unmatched: 'ImportError while importing*' ../../../../pytest-3.10.1/testing/test_terminal.py:831: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestGenericReporting.test_collect_fail[quiet] _________________ self = testdir = option = def test_collect_fail(self, testdir, option): testdir.makepyfile("import xyz\n") result = testdir.runpytest(*option.args) result.stdout.fnmatch_lines( > ["ImportError while importing*", "*No module named *xyz*", "*1 error*"] ) E Failed: nomatch: 'ImportError while importing*' E and: '' E remains unmatched: 'ImportError while importing*' ../../../../pytest-3.10.1/testing/test_terminal.py:831: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestGenericReporting.test_collect_fail[fulltrace] _______________ self = testdir = option = def test_collect_fail(self, testdir, option): testdir.makepyfile("import xyz\n") result = testdir.runpytest(*option.args) result.stdout.fnmatch_lines( > ["ImportError while importing*", "*No module named *xyz*", "*1 error*"] ) E Failed: nomatch: 'ImportError while importing*' E and: '' E remains unmatched: 'ImportError while importing*' ../../../../pytest-3.10.1/testing/test_terminal.py:831: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestGenericReporting.test_maxfailures[default] ________________ self = testdir = option = def test_maxfailures(self, testdir, option): testdir.makepyfile( """ def test_1(): assert 0 def test_2(): assert 0 def test_3(): assert 0 """ ) result = testdir.runpytest("--maxfail=2", *option.args) result.stdout.fnmatch_lines( > ["*def test_1():*", "*def test_2():*", "*2 failed*"] ) E Failed: nomatch: '*def test_1():*' E and: '' E remains unmatched: '*def test_1():*' ../../../../pytest-3.10.1/testing/test_terminal.py:847: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestGenericReporting.test_maxfailures[verbose] ________________ self = testdir = option = def test_maxfailures(self, testdir, option): testdir.makepyfile( """ def test_1(): assert 0 def test_2(): assert 0 def test_3(): assert 0 """ ) result = testdir.runpytest("--maxfail=2", *option.args) result.stdout.fnmatch_lines( > ["*def test_1():*", "*def test_2():*", "*2 failed*"] ) E Failed: nomatch: '*def test_1():*' E and: '' E remains unmatched: '*def test_1():*' ../../../../pytest-3.10.1/testing/test_terminal.py:847: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestGenericReporting.test_maxfailures[quiet] _________________ self = testdir = option = def test_maxfailures(self, testdir, option): testdir.makepyfile( """ def test_1(): assert 0 def test_2(): assert 0 def test_3(): assert 0 """ ) result = testdir.runpytest("--maxfail=2", *option.args) result.stdout.fnmatch_lines( > ["*def test_1():*", "*def test_2():*", "*2 failed*"] ) E Failed: nomatch: '*def test_1():*' E and: '' E remains unmatched: '*def test_1():*' ../../../../pytest-3.10.1/testing/test_terminal.py:847: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestGenericReporting.test_maxfailures[fulltrace] _______________ self = testdir = option = def test_maxfailures(self, testdir, option): testdir.makepyfile( """ def test_1(): assert 0 def test_2(): assert 0 def test_3(): assert 0 """ ) result = testdir.runpytest("--maxfail=2", *option.args) result.stdout.fnmatch_lines( > ["*def test_1():*", "*def test_2():*", "*2 failed*"] ) E Failed: nomatch: '*def test_1():*' E and: '' E remains unmatched: '*def test_1():*' ../../../../pytest-3.10.1/testing/test_terminal.py:847: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestGenericReporting.test_tb_option[default] _________________ self = testdir = option = def test_tb_option(self, testdir, option): testdir.makepyfile( """ import pytest def g(): raise IndexError def test_func(): print (6*7) g() # --calling-- """ ) for tbopt in ["long", "short", "no"]: print("testing --tb=%s..." % tbopt) result = testdir.runpytest("--tb=%s" % tbopt) s = result.stdout.str() if tbopt == "long": > assert "print (6*7)" in s E AssertionError: assert 'print (6*7)' in '' ../../../../pytest-3.10.1/testing/test_terminal.py:866: AssertionError ----------------------------- Captured stdout call ----------------------------- testing --tb=long... ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestGenericReporting.test_tb_option[verbose] _________________ self = testdir = option = def test_tb_option(self, testdir, option): testdir.makepyfile( """ import pytest def g(): raise IndexError def test_func(): print (6*7) g() # --calling-- """ ) for tbopt in ["long", "short", "no"]: print("testing --tb=%s..." % tbopt) result = testdir.runpytest("--tb=%s" % tbopt) s = result.stdout.str() if tbopt == "long": > assert "print (6*7)" in s E AssertionError: assert 'print (6*7)' in '' ../../../../pytest-3.10.1/testing/test_terminal.py:866: AssertionError ----------------------------- Captured stdout call ----------------------------- testing --tb=long... ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ TestGenericReporting.test_tb_option[quiet] __________________ self = testdir = option = def test_tb_option(self, testdir, option): testdir.makepyfile( """ import pytest def g(): raise IndexError def test_func(): print (6*7) g() # --calling-- """ ) for tbopt in ["long", "short", "no"]: print("testing --tb=%s..." % tbopt) result = testdir.runpytest("--tb=%s" % tbopt) s = result.stdout.str() if tbopt == "long": > assert "print (6*7)" in s E AssertionError: assert 'print (6*7)' in '' ../../../../pytest-3.10.1/testing/test_terminal.py:866: AssertionError ----------------------------- Captured stdout call ----------------------------- testing --tb=long... ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestGenericReporting.test_tb_option[fulltrace] ________________ self = testdir = option = def test_tb_option(self, testdir, option): testdir.makepyfile( """ import pytest def g(): raise IndexError def test_func(): print (6*7) g() # --calling-- """ ) for tbopt in ["long", "short", "no"]: print("testing --tb=%s..." % tbopt) result = testdir.runpytest("--tb=%s" % tbopt) s = result.stdout.str() if tbopt == "long": > assert "print (6*7)" in s E AssertionError: assert 'print (6*7)' in '' ../../../../pytest-3.10.1/testing/test_terminal.py:866: AssertionError ----------------------------- Captured stdout call ----------------------------- testing --tb=long... ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestGenericReporting.test_tb_crashline[default] ________________ self = testdir = option = def test_tb_crashline(self, testdir, option): p = testdir.makepyfile( """ import pytest def g(): raise IndexError def test_func1(): print (6*7) g() # --calling-- def test_func2(): assert 0, "hello" """ ) result = testdir.runpytest("--tb=line") bn = p.basename result.stdout.fnmatch_lines( > ["*%s:3: IndexError*" % bn, "*%s:8: AssertionError: hello*" % bn] ) E Failed: nomatch: '*test_tb_crashline.py:3: IndexError*' E and: '' E remains unmatched: '*test_tb_crashline.py:3: IndexError*' ../../../../pytest-3.10.1/testing/test_terminal.py:893: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestGenericReporting.test_tb_crashline[verbose] ________________ self = testdir = option = def test_tb_crashline(self, testdir, option): p = testdir.makepyfile( """ import pytest def g(): raise IndexError def test_func1(): print (6*7) g() # --calling-- def test_func2(): assert 0, "hello" """ ) result = testdir.runpytest("--tb=line") bn = p.basename result.stdout.fnmatch_lines( > ["*%s:3: IndexError*" % bn, "*%s:8: AssertionError: hello*" % bn] ) E Failed: nomatch: '*test_tb_crashline.py:3: IndexError*' E and: '' E remains unmatched: '*test_tb_crashline.py:3: IndexError*' ../../../../pytest-3.10.1/testing/test_terminal.py:893: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestGenericReporting.test_tb_crashline[quiet] _________________ self = testdir = option = def test_tb_crashline(self, testdir, option): p = testdir.makepyfile( """ import pytest def g(): raise IndexError def test_func1(): print (6*7) g() # --calling-- def test_func2(): assert 0, "hello" """ ) result = testdir.runpytest("--tb=line") bn = p.basename result.stdout.fnmatch_lines( > ["*%s:3: IndexError*" % bn, "*%s:8: AssertionError: hello*" % bn] ) E Failed: nomatch: '*test_tb_crashline.py:3: IndexError*' E and: '' E remains unmatched: '*test_tb_crashline.py:3: IndexError*' ../../../../pytest-3.10.1/testing/test_terminal.py:893: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestGenericReporting.test_tb_crashline[fulltrace] _______________ self = testdir = option = def test_tb_crashline(self, testdir, option): p = testdir.makepyfile( """ import pytest def g(): raise IndexError def test_func1(): print (6*7) g() # --calling-- def test_func2(): assert 0, "hello" """ ) result = testdir.runpytest("--tb=line") bn = p.basename result.stdout.fnmatch_lines( > ["*%s:3: IndexError*" % bn, "*%s:8: AssertionError: hello*" % bn] ) E Failed: nomatch: '*test_tb_crashline.py:3: IndexError*' E and: '' E remains unmatched: '*test_tb_crashline.py:3: IndexError*' ../../../../pytest-3.10.1/testing/test_terminal.py:893: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________ TestGenericReporting.test_pytest_report_header[default] ____________ self = testdir = option = def test_pytest_report_header(self, testdir, option): testdir.makeconftest( """ def pytest_sessionstart(session): session.config._somevalue = 42 def pytest_report_header(config): return "hello: %s" % config._somevalue """ ) testdir.mkdir("a").join("conftest.py").write( """ def pytest_report_header(config, startdir): return ["line1", str(startdir)] """ ) result = testdir.runpytest("a") > result.stdout.fnmatch_lines(["*hello: 42*", "line1", str(testdir.tmpdir)]) E Failed: nomatch: '*hello: 42*' E and: '' E remains unmatched: '*hello: 42*' ../../../../pytest-3.10.1/testing/test_terminal.py:914: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________ TestGenericReporting.test_pytest_report_header[verbose] ____________ self = testdir = option = def test_pytest_report_header(self, testdir, option): testdir.makeconftest( """ def pytest_sessionstart(session): session.config._somevalue = 42 def pytest_report_header(config): return "hello: %s" % config._somevalue """ ) testdir.mkdir("a").join("conftest.py").write( """ def pytest_report_header(config, startdir): return ["line1", str(startdir)] """ ) result = testdir.runpytest("a") > result.stdout.fnmatch_lines(["*hello: 42*", "line1", str(testdir.tmpdir)]) E Failed: nomatch: '*hello: 42*' E and: '' E remains unmatched: '*hello: 42*' ../../../../pytest-3.10.1/testing/test_terminal.py:914: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________ TestGenericReporting.test_pytest_report_header[quiet] _____________ self = testdir = option = def test_pytest_report_header(self, testdir, option): testdir.makeconftest( """ def pytest_sessionstart(session): session.config._somevalue = 42 def pytest_report_header(config): return "hello: %s" % config._somevalue """ ) testdir.mkdir("a").join("conftest.py").write( """ def pytest_report_header(config, startdir): return ["line1", str(startdir)] """ ) result = testdir.runpytest("a") > result.stdout.fnmatch_lines(["*hello: 42*", "line1", str(testdir.tmpdir)]) E Failed: nomatch: '*hello: 42*' E and: '' E remains unmatched: '*hello: 42*' ../../../../pytest-3.10.1/testing/test_terminal.py:914: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________ TestGenericReporting.test_pytest_report_header[fulltrace] ___________ self = testdir = option = def test_pytest_report_header(self, testdir, option): testdir.makeconftest( """ def pytest_sessionstart(session): session.config._somevalue = 42 def pytest_report_header(config): return "hello: %s" % config._somevalue """ ) testdir.mkdir("a").join("conftest.py").write( """ def pytest_report_header(config, startdir): return ["line1", str(startdir)] """ ) result = testdir.runpytest("a") > result.stdout.fnmatch_lines(["*hello: 42*", "line1", str(testdir.tmpdir)]) E Failed: nomatch: '*hello: 42*' E and: '' E remains unmatched: '*hello: 42*' ../../../../pytest-3.10.1/testing/test_terminal.py:914: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ TestGenericReporting.test_show_capture ____________________ self = testdir = def test_show_capture(self, testdir): testdir.makepyfile( """ import sys import logging def test_one(): sys.stdout.write('!This is stdout!') sys.stderr.write('!This is stderr!') logging.warning('!This is a warning log msg!') assert False, 'Something failed' """ ) result = testdir.runpytest("--tb=short") result.stdout.fnmatch_lines( [ "!This is stdout!", "!This is stderr!", > "*WARNING*!This is a warning log msg!", ] ) E Failed: nomatch: '!This is stdout!' E and: '' E remains unmatched: '!This is stdout!' ../../../../pytest-3.10.1/testing/test_terminal.py:934: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________ TestGenericReporting.test_show_capture_with_teardown_logs ___________ self = testdir = def test_show_capture_with_teardown_logs(self, testdir): """Ensure that the capturing of teardown logs honor --show-capture setting""" testdir.makepyfile( """ import logging import sys import pytest @pytest.fixture(scope="function", autouse="True") def hook_each_test(request): yield sys.stdout.write("!stdout!") sys.stderr.write("!stderr!") logging.warning("!log!") def test_func(): assert False """ ) result = testdir.runpytest("--show-capture=stdout", "--tb=short").stdout.str() > assert "!stdout!" in result E AssertionError: assert '!stdout!' in '' ../../../../pytest-3.10.1/testing/test_terminal.py:988: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ test_fdopen_kept_alive_issue124 ________________________ testdir = @pytest.mark.xfail("not hasattr(os, 'dup')") def test_fdopen_kept_alive_issue124(testdir): testdir.makepyfile( """ import os, sys k = [] def test_open_file_and_keep_alive(capfd): stdout = os.fdopen(1, 'w', 1) k.append(stdout) def test_close_kept_alive_file(): stdout = k.pop() stdout.close() """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*2 passed*"]) E Failed: nomatch: '*2 passed*' E and: '' E remains unmatched: '*2 passed*' ../../../../pytest-3.10.1/testing/test_terminal.py:1024: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ test_tbstyle_native_setup_error ________________________ testdir = def test_tbstyle_native_setup_error(testdir): testdir.makepyfile( """ import pytest @pytest.fixture def setup_error_fixture(): raise Exception("error in exception") def test_error_fixture(setup_error_fixture): pass """ ) result = testdir.runpytest("--tb=native") result.stdout.fnmatch_lines( > ['*File *test_tbstyle_native_setup_error.py", line *, in setup_error_fixture*'] ) E Failed: nomatch: '*File *test_tbstyle_native_setup_error.py", line *, in setup_error_fixture*' E and: '' E remains unmatched: '*File *test_tbstyle_native_setup_error.py", line *, in setup_error_fixture*' ../../../../pytest-3.10.1/testing/test_terminal.py:1041: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________________ test_terminal_summary _____________________________ testdir = def test_terminal_summary(testdir): testdir.makeconftest( """ def pytest_terminal_summary(terminalreporter, exitstatus): w = terminalreporter w.section("hello") w.line("world") w.line("exitstatus: {0}".format(exitstatus)) """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( """ *==== hello ====* world exitstatus: 5 > """ ) E Failed: nomatch: '*==== hello ====*' E and: '' E remains unmatched: '*==== hello ====*' ../../../../pytest-3.10.1/testing/test_terminal.py:1061: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ test_no_trailing_whitespace_after_inifile_word ________________ testdir = def test_no_trailing_whitespace_after_inifile_word(testdir): result = testdir.runpytest("") > assert "inifile:\n" in result.stdout.str() E AssertionError: assert 'inifile:\n' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c61cd8ad0>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c61cd8ad0> = <_pytest.pytester.RunResult object at 0x7f5c61c8ba10>.stdout ../../../../pytest-3.10.1/testing/test_terminal.py:1147: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestClassicOutputStyle.test_normal_verbosity _________________ self = testdir = test_files = None def test_normal_verbosity(self, testdir, test_files): result = testdir.runpytest("-o", "console_output_style=classic") result.stdout.fnmatch_lines( [ "test_one.py .", "test_two.py F", "sub{}test_three.py .F.".format(os.sep), > "*2 failed, 3 passed in*", ] ) E Failed: nomatch: 'test_one.py .' E and: '' E remains unmatched: 'test_one.py .' ../../../../pytest-3.10.1/testing/test_terminal.py:1178: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestClassicOutputStyle.test_verbose ______________________ self = testdir = test_files = None def test_verbose(self, testdir, test_files): result = testdir.runpytest("-o", "console_output_style=classic", "-v") result.stdout.fnmatch_lines( [ "test_one.py::test_one PASSED", "test_two.py::test_two FAILED", "sub{}test_three.py::test_three_1 PASSED".format(os.sep), "sub{}test_three.py::test_three_2 FAILED".format(os.sep), "sub{}test_three.py::test_three_3 PASSED".format(os.sep), > "*2 failed, 3 passed in*", ] ) E Failed: nomatch: 'test_one.py::test_one PASSED' E and: '' E remains unmatched: 'test_one.py::test_one PASSED' ../../../../pytest-3.10.1/testing/test_terminal.py:1191: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ TestClassicOutputStyle.test_quiet _______________________ self = testdir = test_files = None def test_quiet(self, testdir, test_files): result = testdir.runpytest("-o", "console_output_style=classic", "-q") > result.stdout.fnmatch_lines([".F.F.", "*2 failed, 3 passed in*"]) E Failed: nomatch: '.F.F.' E and: '' E remains unmatched: '.F.F.' ../../../../pytest-3.10.1/testing/test_terminal.py:1197: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestProgressOutputStyle.test_zero_tests_collected _______________ self = testdir = def test_zero_tests_collected(self, testdir): """Some plugins (testmon for example) might issue pytest_runtest_logreport without any tests being actually collected (#2971).""" testdir.makeconftest( """ def pytest_collection_modifyitems(items, config): from _pytest.runner import CollectReport for node_id in ('nodeid1', 'nodeid2'): rep = CollectReport(node_id, 'passed', None, None) rep.when = 'passed' rep.duration = 0.1 config.hook.pytest_runtest_logreport(report=rep) """ ) output = testdir.runpytest() assert "ZeroDivisionError" not in output.stdout.str() > output.stdout.fnmatch_lines(["=* 2 passed in *="]) E Failed: nomatch: '=* 2 passed in *=' E and: '' E remains unmatched: '=* 2 passed in *=' ../../../../pytest-3.10.1/testing/test_terminal.py:1237: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestProgressOutputStyle.test_normal ______________________ self = many_tests_files = None testdir = def test_normal(self, many_tests_files, testdir): output = testdir.runpytest() output.stdout.re_match_lines( [ r"test_bar.py \.{10} \s+ \[ 50%\]", r"test_foo.py \.{5} \s+ \[ 75%\]", > r"test_foobar.py \.{5} \s+ \[100%\]", ] ) E Failed: nomatch: 'test_bar.py \\.{10} \\s+ \\[ 50%\\]' E and: '' E remains unmatched: 'test_bar.py \\.{10} \\s+ \\[ 50%\\]' ../../../../pytest-3.10.1/testing/test_terminal.py:1245: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ TestProgressOutputStyle.test_count ______________________ self = many_tests_files = None testdir = def test_count(self, many_tests_files, testdir): testdir.makeini( """ [pytest] console_output_style = count """ ) output = testdir.runpytest() output.stdout.re_match_lines( [ r"test_bar.py \.{10} \s+ \[10/20\]", r"test_foo.py \.{5} \s+ \[15/20\]", > r"test_foobar.py \.{5} \s+ \[20/20\]", ] ) E Failed: nomatch: 'test_bar.py \\.{10} \\s+ \\[10/20\\]' E and: '' E remains unmatched: 'test_bar.py \\.{10} \\s+ \\[10/20\\]' ../../../../pytest-3.10.1/testing/test_terminal.py:1261: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestProgressOutputStyle.test_verbose _____________________ self = many_tests_files = None testdir = def test_verbose(self, many_tests_files, testdir): output = testdir.runpytest("-v") output.stdout.re_match_lines( [ r"test_bar.py::test_bar\[0\] PASSED \s+ \[ 5%\]", r"test_foo.py::test_foo\[4\] PASSED \s+ \[ 75%\]", > r"test_foobar.py::test_foobar\[4\] PASSED \s+ \[100%\]", ] ) E Failed: nomatch: 'test_bar.py::test_bar\\[0\\] PASSED \\s+ \\[ 5%\\]' E and: '' E remains unmatched: 'test_bar.py::test_bar\\[0\\] PASSED \\s+ \\[ 5%\\]' ../../../../pytest-3.10.1/testing/test_terminal.py:1271: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ TestProgressOutputStyle.test_verbose_count __________________ self = many_tests_files = None testdir = def test_verbose_count(self, many_tests_files, testdir): testdir.makeini( """ [pytest] console_output_style = count """ ) output = testdir.runpytest("-v") output.stdout.re_match_lines( [ r"test_bar.py::test_bar\[0\] PASSED \s+ \[ 1/20\]", r"test_foo.py::test_foo\[4\] PASSED \s+ \[15/20\]", > r"test_foobar.py::test_foobar\[4\] PASSED \s+ \[20/20\]", ] ) E Failed: nomatch: 'test_bar.py::test_bar\\[0\\] PASSED \\s+ \\[ 1/20\\]' E and: '' E remains unmatched: 'test_bar.py::test_bar\\[0\\] PASSED \\s+ \\[ 1/20\\]' ../../../../pytest-3.10.1/testing/test_terminal.py:1287: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ TestProgressOutputStyle.test_capture_no ____________________ self = many_tests_files = None testdir = def test_capture_no(self, many_tests_files, testdir): output = testdir.runpytest("-s") output.stdout.re_match_lines( > [r"test_bar.py \.{10}", r"test_foo.py \.{5}", r"test_foobar.py \.{5}"] ) E Failed: nomatch: 'test_bar.py \\.{10}' E and: '' E remains unmatched: 'test_bar.py \\.{10}' ../../../../pytest-3.10.1/testing/test_terminal.py:1321: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestProgressWithTeardown.test_teardown_simple _________________ self = testdir = contest_with_teardown_fixture = None def test_teardown_simple(self, testdir, contest_with_teardown_fixture): testdir.makepyfile( """ def test_foo(fail_teardown): pass """ ) output = testdir.runpytest() > output.stdout.re_match_lines([r"test_teardown_simple.py \.E\s+\[100%\]"]) E Failed: nomatch: 'test_teardown_simple.py \\.E\\s+\\[100%\\]' E and: '' E remains unmatched: 'test_teardown_simple.py \\.E\\s+\\[100%\\]' ../../../../pytest-3.10.1/testing/test_terminal.py:1369: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________ TestProgressWithTeardown.test_teardown_with_test_also_failing _________ self = testdir = contest_with_teardown_fixture = None def test_teardown_with_test_also_failing( self, testdir, contest_with_teardown_fixture ): testdir.makepyfile( """ def test_foo(fail_teardown): assert False """ ) output = testdir.runpytest() output.stdout.re_match_lines( > [r"test_teardown_with_test_also_failing.py FE\s+\[100%\]"] ) E Failed: nomatch: 'test_teardown_with_test_also_failing.py FE\\s+\\[100%\\]' E and: '' E remains unmatched: 'test_teardown_with_test_also_failing.py FE\\s+\\[100%\\]' ../../../../pytest-3.10.1/testing/test_terminal.py:1382: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestProgressWithTeardown.test_teardown_many __________________ self = testdir = many_files = None def test_teardown_many(self, testdir, many_files): output = testdir.runpytest() output.stdout.re_match_lines( > [r"test_bar.py (\.E){5}\s+\[ 25%\]", r"test_foo.py (\.E){15}\s+\[100%\]"] ) E Failed: nomatch: 'test_bar.py (\\.E){5}\\s+\\[ 25%\\]' E and: '' E remains unmatched: 'test_bar.py (\\.E){5}\\s+\\[ 25%\\]' ../../../../pytest-3.10.1/testing/test_terminal.py:1388: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestProgressWithTeardown.test_teardown_many_verbose ______________ self = testdir = many_files = None def test_teardown_many_verbose(self, testdir, many_files): output = testdir.runpytest("-v") output.stdout.re_match_lines( [ r"test_bar.py::test_bar\[0\] PASSED\s+\[ 5%\]", r"test_bar.py::test_bar\[0\] ERROR\s+\[ 5%\]", r"test_bar.py::test_bar\[4\] PASSED\s+\[ 25%\]", > r"test_bar.py::test_bar\[4\] ERROR\s+\[ 25%\]", ] ) E Failed: nomatch: 'test_bar.py::test_bar\\[0\\] PASSED\\s+\\[ 5%\\]' E and: '' E remains unmatched: 'test_bar.py::test_bar\\[0\\] PASSED\\s+\\[ 5%\\]' ../../../../pytest-3.10.1/testing/test_terminal.py:1398: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________________ test_tmpdir_fixture ______________________________ testdir = def test_tmpdir_fixture(testdir): p = testdir.copy_example("tmpdir/tmpdir_fixture.py") results = testdir.runpytest(p) > results.stdout.fnmatch_lines("*1 passed*") E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/test_tmpdir.py:17: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ TestTempdirHandler.test_mktemp ________________________ self = testdir = def test_mktemp(self, testdir): from _pytest.tmpdir import TempdirFactory, TempPathFactory > config = testdir.parseconfig() ../../../../pytest-3.10.1/testing/test_tmpdir.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________ TestConfigTmpdir.test_getbasetemp_custom_removes_old _____________ self = testdir = def test_getbasetemp_custom_removes_old(self, testdir): mytemp = testdir.tmpdir.join("xyz") p = testdir.makepyfile( """ def test_1(tmpdir): pass """ ) testdir.runpytest(p, "--basetemp=%s" % mytemp) mytemp.check() mytemp.ensure("hello") testdir.runpytest(p, "--basetemp=%s" % mytemp) mytemp.check() > assert not mytemp.join("hello").check() E AssertionError: assert not True E + where True = () E + where = local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_getbasetemp_custom_removes_old0/xyz/hello').check E + where local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_getbasetemp_custom_removes_old0/xyz/hello') = ('hello') E + where = local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_getbasetemp_custom_removes_old0/xyz').join ../../../../pytest-3.10.1/testing/test_tmpdir.py:58: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________________ test_basetemp _________________________________ testdir = def test_basetemp(testdir): mytemp = testdir.tmpdir.mkdir("mytemp") p = testdir.makepyfile( """ import pytest def test_1(): pytest.ensuretemp("hello") """ ) result = testdir.runpytest(p, "--basetemp=%s" % mytemp) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c61b15390>.ret ../../../../pytest-3.10.1/testing/test_tmpdir.py:71: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ test_tmpdir_always_is_realpath ________________________ testdir = def test_tmpdir_always_is_realpath(testdir): # the reason why tmpdir should be a realpath is that # when you cd to it and do "os.getcwd()" you will anyway # get the realpath. Using the symlinked path can thus # easily result in path-inequality # XXX if that proves to be a problem, consider using # os.environ["PWD"] realtemp = testdir.tmpdir.mkdir("myrealtemp") linktemp = testdir.tmpdir.join("symlinktemp") attempt_symlink_to(linktemp, str(realtemp)) p = testdir.makepyfile( """ def test_1(tmpdir): import os assert os.path.realpath(str(tmpdir)) == str(tmpdir) """ ) result = testdir.runpytest("-s", p, "--basetemp=%s/bt" % linktemp) > assert not result.ret E assert not 3 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c61bf2a90>.ret ../../../../pytest-3.10.1/testing/test_tmpdir.py:93: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ test_tmpdir_too_long_on_parametrization ____________________ testdir = def test_tmpdir_too_long_on_parametrization(testdir): testdir.makepyfile( """ import pytest @pytest.mark.parametrize("arg", ["1"*1000]) def test_some(arg, tmpdir): tmpdir.ensure("hello") """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_tmpdir.py:105: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________________ test_tmpdir_factory ______________________________ testdir = def test_tmpdir_factory(testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope='session') def session_dir(tmpdir_factory): return tmpdir_factory.mktemp('data', numbered=False) def test_some(session_dir): assert session_dir.isdir() """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_tmpdir.py:120: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________________ test_tmpdir_fallback_tox_env _________________________ testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c617a4650> def test_tmpdir_fallback_tox_env(testdir, monkeypatch): """Test that tmpdir works even if environment variables required by getpass module are missing (#1010). """ monkeypatch.delenv("USER", raising=False) monkeypatch.delenv("USERNAME", raising=False) testdir.makepyfile( """ import pytest def test_some(tmpdir): assert tmpdir.isdir() """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_tmpdir.py:137: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________ test_tmpdir_fallback_uid_not_found ______________________ testdir = @pytest.mark.usefixtures("break_getuser") @pytest.mark.skipif(sys.platform.startswith("win"), reason="no os.getuid on windows") def test_tmpdir_fallback_uid_not_found(testdir): """Test that tmpdir works even if the current process's user id does not correspond to a valid user. """ testdir.makepyfile( """ import pytest def test_some(tmpdir): assert tmpdir.isdir() """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_tmpdir.py:163: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________________ test_simple_unittest _____________________________ testdir = def test_simple_unittest(testdir): testpath = testdir.makepyfile( """ import unittest class MyTestCase(unittest.TestCase): def testpassing(self): self.assertEqual('foo', 'foo') def test_failing(self): self.assertEqual('foo', 'bar') """ ) > reprec = testdir.inline_run(testpath) ../../../../pytest-3.10.1/testing/test_unittest.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________________ test_runTest_method ______________________________ testdir = def test_runTest_method(testdir): testdir.makepyfile( """ import unittest class MyTestCaseWithRunTest(unittest.TestCase): def runTest(self): self.assertEqual('foo', 'foo') class MyTestCaseWithoutRunTest(unittest.TestCase): def runTest(self): self.assertEqual('foo', 'foo') def test_something(self): pass """ ) result = testdir.runpytest("-v") result.stdout.fnmatch_lines( """ *MyTestCaseWithRunTest::runTest* *MyTestCaseWithoutRunTest::test_something* *2 passed* > """ ) E Failed: nomatch: '*MyTestCaseWithRunTest::runTest*' E and: '' E remains unmatched: '*MyTestCaseWithRunTest::runTest*' ../../../../pytest-3.10.1/testing/test_unittest.py:47: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________ test_isclasscheck_issue53 ___________________________ testdir = def test_isclasscheck_issue53(testdir): testpath = testdir.makepyfile( """ import unittest class _E(object): def __getattr__(self, tag): pass E = _E() """ ) result = testdir.runpytest(testpath) > assert result.ret == EXIT_NOTESTSCOLLECTED E assert 3 == 5 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c620033d0>.ret ../../../../pytest-3.10.1/testing/test_unittest.py:62: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________________ test_setup __________________________________ testdir = def test_setup(testdir): testpath = testdir.makepyfile( """ import unittest class MyTestCase(unittest.TestCase): def setUp(self): self.foo = 1 def setup_method(self, method): self.foo2 = 1 def test_both(self): self.assertEqual(1, self.foo) assert self.foo2 == 1 def teardown_method(self, method): assert 0, "42" """ ) > reprec = testdir.inline_run("-s", testpath) ../../../../pytest-3.10.1/testing/test_unittest.py:82: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________________________ test_setUpModule _______________________________ testdir = def test_setUpModule(testdir): testpath = testdir.makepyfile( """ values = [] def setUpModule(): values.append(1) def tearDownModule(): del values[0] def test_hello(): assert values == [1] def test_world(): assert values == [1] """ ) result = testdir.runpytest(testpath) > result.stdout.fnmatch_lines(["*2 passed*"]) E Failed: nomatch: '*2 passed*' E and: '' E remains unmatched: '*2 passed*' ../../../../pytest-3.10.1/testing/test_unittest.py:107: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ test_setUpModule_failing_no_teardown _____________________ testdir = def test_setUpModule_failing_no_teardown(testdir): testpath = testdir.makepyfile( """ values = [] def setUpModule(): 0/0 def tearDownModule(): values.append(1) def test_hello(): pass """ ) > reprec = testdir.inline_run(testpath) ../../../../pytest-3.10.1/testing/test_unittest.py:125: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________________ test_new_instances ______________________________ testdir = def test_new_instances(testdir): testpath = testdir.makepyfile( """ import unittest class MyTestCase(unittest.TestCase): def test_func1(self): self.x = 2 def test_func2(self): assert not hasattr(self, 'x') """ ) > reprec = testdir.inline_run(testpath) ../../../../pytest-3.10.1/testing/test_unittest.py:142: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________________________ test_teardown _________________________________ testdir = def test_teardown(testdir): testpath = testdir.makepyfile( """ import unittest class MyTestCase(unittest.TestCase): values = [] def test_one(self): pass def tearDown(self): self.values.append(None) class Second(unittest.TestCase): def test_check(self): self.assertEqual(MyTestCase.values, [None]) """ ) > reprec = testdir.inline_run(testpath) ../../../../pytest-3.10.1/testing/test_unittest.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________________ test_teardown_issue1649 ____________________________ testdir = def test_teardown_issue1649(testdir): """ Are TestCase objects cleaned up? Often unittest TestCase objects set attributes that are large and expensive during setUp. The TestCase will not be cleaned up if the test fails, because it would then exist in the stackframe. """ testpath = testdir.makepyfile( """ import unittest class TestCaseObjectsShouldBeCleanedUp(unittest.TestCase): def setUp(self): self.an_expensive_object = 1 def test_demo(self): pass """ ) > testdir.inline_run("-s", testpath) ../../../../pytest-3.10.1/testing/test_unittest.py:187: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________________ test_unittest_skip_issue148 __________________________ testdir = def test_unittest_skip_issue148(testdir): testpath = testdir.makepyfile( """ import unittest @unittest.skip("hello") class MyTestCase(unittest.TestCase): @classmethod def setUpClass(self): xxx def test_one(self): pass @classmethod def tearDownClass(self): xxx """ ) > reprec = testdir.inline_run(testpath) ../../../../pytest-3.10.1/testing/test_unittest.py:210: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ test_method_and_teardown_failing_reporting __________________ testdir = def test_method_and_teardown_failing_reporting(testdir): testdir.makepyfile( """ import unittest, pytest class TC(unittest.TestCase): def tearDown(self): assert 0, "down1" def test_method(self): assert False, "down2" """ ) result = testdir.runpytest("-s") > assert result.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c619a6110>.ret ../../../../pytest-3.10.1/testing/test_unittest.py:226: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ test_setup_failure_is_shown __________________________ testdir = def test_setup_failure_is_shown(testdir): testdir.makepyfile( """ import unittest import pytest class TC(unittest.TestCase): def setUp(self): assert 0, "down1" def test_method(self): print ("never42") xyz """ ) result = testdir.runpytest("-s") > assert result.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c61a1bd50>.ret ../../../../pytest-3.10.1/testing/test_unittest.py:252: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________________ test_setup_setUpClass _____________________________ testdir = def test_setup_setUpClass(testdir): testpath = testdir.makepyfile( """ import unittest import pytest class MyTestCase(unittest.TestCase): x = 0 @classmethod def setUpClass(cls): cls.x += 1 def test_func1(self): assert self.x == 1 def test_func2(self): assert self.x == 1 @classmethod def tearDownClass(cls): cls.x -= 1 def test_teareddown(): assert MyTestCase.x == 0 """ ) > reprec = testdir.inline_run(testpath) ../../../../pytest-3.10.1/testing/test_unittest.py:278: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________________________ test_setup_class _______________________________ testdir = def test_setup_class(testdir): testpath = testdir.makepyfile( """ import unittest import pytest class MyTestCase(unittest.TestCase): x = 0 def setup_class(cls): cls.x += 1 def test_func1(self): assert self.x == 1 def test_func2(self): assert self.x == 1 def teardown_class(cls): cls.x -= 1 def test_teareddown(): assert MyTestCase.x == 0 """ ) > reprec = testdir.inline_run(testpath) ../../../../pytest-3.10.1/testing/test_unittest.py:301: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ test_testcase_custom_exception_info[Error] __________________ testdir = type = 'Error' @pytest.mark.parametrize("type", ["Error", "Failure"]) def test_testcase_custom_exception_info(testdir, type): testdir.makepyfile( """ from unittest import TestCase import py, pytest import _pytest._code class MyTestCase(TestCase): def run(self, result): excinfo = pytest.raises(ZeroDivisionError, lambda: 0/0) # we fake an incompatible exception info from _pytest.monkeypatch import MonkeyPatch mp = MonkeyPatch() def t(*args): mp.undo() raise TypeError() mp.setattr(_pytest._code, 'ExceptionInfo', t) try: excinfo = excinfo._excinfo result.add%(type)s(self, excinfo) finally: mp.undo() def test_hello(self): pass """ % locals() ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ "NOTE: Incompatible Exception Representation*", "*ZeroDivisionError*", > "*1 failed*", ] ) E Failed: nomatch: 'NOTE: Incompatible Exception Representation*' E and: '' E remains unmatched: 'NOTE: Incompatible Exception Representation*' ../../../../pytest-3.10.1/testing/test_unittest.py:361: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ test_testcase_custom_exception_info[Failure] _________________ testdir = type = 'Failure' @pytest.mark.parametrize("type", ["Error", "Failure"]) def test_testcase_custom_exception_info(testdir, type): testdir.makepyfile( """ from unittest import TestCase import py, pytest import _pytest._code class MyTestCase(TestCase): def run(self, result): excinfo = pytest.raises(ZeroDivisionError, lambda: 0/0) # we fake an incompatible exception info from _pytest.monkeypatch import MonkeyPatch mp = MonkeyPatch() def t(*args): mp.undo() raise TypeError() mp.setattr(_pytest._code, 'ExceptionInfo', t) try: excinfo = excinfo._excinfo result.add%(type)s(self, excinfo) finally: mp.undo() def test_hello(self): pass """ % locals() ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ "NOTE: Incompatible Exception Representation*", "*ZeroDivisionError*", > "*1 failed*", ] ) E Failed: nomatch: 'NOTE: Incompatible Exception Representation*' E and: '' E remains unmatched: 'NOTE: Incompatible Exception Representation*' ../../../../pytest-3.10.1/testing/test_unittest.py:361: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ test_testcase_totally_incompatible_exception_info _______________ testdir = def test_testcase_totally_incompatible_exception_info(testdir): item, = testdir.getitems( """ from unittest import TestCase class MyTestCase(TestCase): def test_hello(self): pass > """ ) ../../../../pytest-3.10.1/testing/test_unittest.py:373: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________________ test_module_level_pytestmark _________________________ testdir = def test_module_level_pytestmark(testdir): testpath = testdir.makepyfile( """ import unittest import pytest pytestmark = pytest.mark.xfail class MyTestCase(unittest.TestCase): def test_func1(self): assert 0 """ ) > reprec = testdir.inline_run(testpath, "-s") ../../../../pytest-3.10.1/testing/test_unittest.py:391: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________________ test_djangolike_testcase ___________________________ testdir = def test_djangolike_testcase(testdir): # contributed from Morten Breekevold testdir.makepyfile( """ from unittest import TestCase, main class DjangoLikeTestCase(TestCase): def setUp(self): print ("setUp()") def test_presetup_has_been_run(self): print ("test_thing()") self.assertTrue(hasattr(self, 'was_presetup')) def tearDown(self): print ("tearDown()") def __call__(self, result=None): try: self._pre_setup() except (KeyboardInterrupt, SystemExit): raise except Exception: import sys result.addError(self, sys.exc_info()) return super(DjangoLikeTestCase, self).__call__(result) try: self._post_teardown() except (KeyboardInterrupt, SystemExit): raise except Exception: import sys result.addError(self, sys.exc_info()) return def _pre_setup(self): print ("_pre_setup()") self.was_presetup = True def _post_teardown(self): print ("_post_teardown()") """ ) result = testdir.runpytest("-s") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c617c3390>.ret ../../../../pytest-3.10.1/testing/test_unittest.py:650: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________________ test_unorderable_types ____________________________ testdir = def test_unorderable_types(testdir): testdir.makepyfile( """ import unittest class TestJoinEmpty(unittest.TestCase): pass def make_test(): class Test(unittest.TestCase): pass Test.__name__ = "TestFoo" return Test TestFoo = make_test() """ ) result = testdir.runpytest() assert "TypeError" not in result.stdout.str() > assert result.ret == EXIT_NOTESTSCOLLECTED E assert 3 == 5 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c61ff7e90>.ret ../../../../pytest-3.10.1/testing/test_unittest.py:693: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ test_unittest_typerror_traceback _______________________ testdir = def test_unittest_typerror_traceback(testdir): testdir.makepyfile( """ import unittest class TestJoinEmpty(unittest.TestCase): def test_hello(self, arg1): pass """ ) result = testdir.runpytest() > assert "TypeError" in result.stdout.str() E AssertionError: assert 'TypeError' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c61837750>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c61837750> = <_pytest.pytester.RunResult object at 0x7f5c61837490>.stdout ../../../../pytest-3.10.1/testing/test_unittest.py:706: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______ test_unittest_expected_failure_for_failing_test_is_xfail[pytest] _______ testdir = runner = 'pytest' @pytest.mark.parametrize("runner", ["pytest", "unittest"]) def test_unittest_expected_failure_for_failing_test_is_xfail(testdir, runner): script = testdir.makepyfile( """ import unittest class MyTestCase(unittest.TestCase): @unittest.expectedFailure def test_failing_test_is_xfail(self): assert False if __name__ == '__main__': unittest.main() """ ) if runner == "pytest": result = testdir.runpytest("-rxX") result.stdout.fnmatch_lines( > ["*XFAIL*MyTestCase*test_failing_test_is_xfail*", "*1 xfailed*"] ) E Failed: nomatch: '*XFAIL*MyTestCase*test_failing_test_is_xfail*' E and: '' E remains unmatched: '*XFAIL*MyTestCase*test_failing_test_is_xfail*' ../../../../pytest-3.10.1/testing/test_unittest.py:726: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______ test_unittest_expected_failure_for_passing_test_is_fail[pytest] ________ testdir = runner = 'pytest' @pytest.mark.parametrize("runner", ["pytest", "unittest"]) def test_unittest_expected_failure_for_passing_test_is_fail(testdir, runner): script = testdir.makepyfile( """ import unittest class MyTestCase(unittest.TestCase): @unittest.expectedFailure def test_passing_test_is_fail(self): assert True if __name__ == '__main__': unittest.main() """ ) from _pytest.compat import _is_unittest_unexpected_success_a_failure should_fail = _is_unittest_unexpected_success_a_failure() if runner == "pytest": result = testdir.runpytest("-rxX") result.stdout.fnmatch_lines( [ "*MyTestCase*test_passing_test_is_fail*", > "*1 failed*" if should_fail else "*1 xpassed*", ] ) E Failed: nomatch: '*MyTestCase*test_passing_test_is_fail*' E and: '' E remains unmatched: '*MyTestCase*test_passing_test_is_fail*' ../../../../pytest-3.10.1/testing/test_unittest.py:755: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ test_unittest_setup_interaction[fixture-return] ________________ testdir = fix_type = 'fixture', stmt = 'return' @pytest.mark.parametrize( "fix_type, stmt", [("fixture", "return"), ("yield_fixture", "yield")] ) def test_unittest_setup_interaction(testdir, fix_type, stmt): testdir.makepyfile( """ import unittest import pytest class MyTestCase(unittest.TestCase): @pytest.{fix_type}(scope="class", autouse=True) def perclass(self, request): request.cls.hello = "world" {stmt} @pytest.{fix_type}(scope="function", autouse=True) def perfunction(self, request): request.instance.funcname = request.function.__name__ {stmt} def test_method1(self): assert self.funcname == "test_method1" assert self.hello == "world" def test_method2(self): assert self.funcname == "test_method2" def test_classattr(self): assert self.__class__.hello == "world" """.format( fix_type=fix_type, stmt=stmt ) ) result = testdir.runpytest() > result.stdout.fnmatch_lines("*3 passed*") E Failed: nomatch: '*3 passed*' E and: '' E remains unmatched: '*3 passed*' ../../../../pytest-3.10.1/testing/test_unittest.py:797: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ test_unittest_setup_interaction[yield_fixture-yield] _____________ testdir = fix_type = 'yield_fixture', stmt = 'yield' @pytest.mark.parametrize( "fix_type, stmt", [("fixture", "return"), ("yield_fixture", "yield")] ) def test_unittest_setup_interaction(testdir, fix_type, stmt): testdir.makepyfile( """ import unittest import pytest class MyTestCase(unittest.TestCase): @pytest.{fix_type}(scope="class", autouse=True) def perclass(self, request): request.cls.hello = "world" {stmt} @pytest.{fix_type}(scope="function", autouse=True) def perfunction(self, request): request.instance.funcname = request.function.__name__ {stmt} def test_method1(self): assert self.funcname == "test_method1" assert self.hello == "world" def test_method2(self): assert self.funcname == "test_method2" def test_classattr(self): assert self.__class__.hello == "world" """.format( fix_type=fix_type, stmt=stmt ) ) result = testdir.runpytest() > result.stdout.fnmatch_lines("*3 passed*") E Failed: nomatch: '*3 passed*' E and: '' E remains unmatched: '*3 passed*' ../../../../pytest-3.10.1/testing/test_unittest.py:797: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ test_non_unittest_no_setupclass_support ____________________ testdir = def test_non_unittest_no_setupclass_support(testdir): testpath = testdir.makepyfile( """ class TestFoo(object): x = 0 @classmethod def setUpClass(cls): cls.x = 1 def test_method1(self): assert self.x == 0 @classmethod def tearDownClass(cls): cls.x = 1 def test_not_teareddown(): assert TestFoo.x == 0 """ ) > reprec = testdir.inline_run(testpath) ../../../../pytest-3.10.1/testing/test_unittest.py:822: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ test_no_teardown_if_setupclass_failed _____________________ testdir = def test_no_teardown_if_setupclass_failed(testdir): testpath = testdir.makepyfile( """ import unittest class MyTestCase(unittest.TestCase): x = 0 @classmethod def setUpClass(cls): cls.x = 1 assert False def test_func1(self): cls.x = 10 @classmethod def tearDownClass(cls): cls.x = 100 def test_notTornDown(): assert MyTestCase.x == 1 """ ) > reprec = testdir.inline_run(testpath) ../../../../pytest-3.10.1/testing/test_unittest.py:850: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________________ test_issue333_result_clearing _________________________ testdir = def test_issue333_result_clearing(testdir): testdir.makeconftest( """ import pytest @pytest.hookimpl(hookwrapper=True) def pytest_runtest_call(item): yield assert 0 """ ) testdir.makepyfile( """ import unittest class TestIt(unittest.TestCase): def test_func(self): 0/0 """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_unittest.py:873: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________ test_unittest_raise_skip_issue748 _______________________ testdir = def test_unittest_raise_skip_issue748(testdir): testdir.makepyfile( test_foo=""" import unittest class MyTestCase(unittest.TestCase): def test_one(self): raise unittest.SkipTest('skipping due to reasons') """ ) result = testdir.runpytest("-v", "-rs") result.stdout.fnmatch_lines( """ *SKIP*[1]*test_foo.py*skipping due to reasons* *1 skipped* > """ ) E Failed: nomatch: '*SKIP*[1]*test_foo.py*skipping due to reasons*' E and: '' E remains unmatched: '*SKIP*[1]*test_foo.py*skipping due to reasons*' ../../../../pytest-3.10.1/testing/test_unittest.py:892: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ test_unittest_skip_issue1169 _________________________ testdir = def test_unittest_skip_issue1169(testdir): testdir.makepyfile( test_foo=""" import unittest class MyTestCase(unittest.TestCase): @unittest.skip("skipping due to reasons") def test_skip(self): self.fail() """ ) result = testdir.runpytest("-v", "-rs") result.stdout.fnmatch_lines( """ *SKIP*[1]*skipping due to reasons* *1 skipped* > """ ) E Failed: nomatch: '*SKIP*[1]*skipping due to reasons*' E and: '' E remains unmatched: '*SKIP*[1]*skipping due to reasons*' ../../../../pytest-3.10.1/testing/test_unittest.py:912: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ test_class_method_containing_test_issue1558 __________________ testdir = def test_class_method_containing_test_issue1558(testdir): testdir.makepyfile( test_foo=""" import unittest class MyTestCase(unittest.TestCase): def test_should_run(self): pass def test_should_not_run(self): pass test_should_not_run.__test__ = False """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/test_unittest.py:929: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________ test_usefixtures_marker_on_unittest[six.moves.builtins.object] ________ base = 'six.moves.builtins.object' testdir = @pytest.mark.issue(3498) @pytest.mark.parametrize( "base", ["six.moves.builtins.object", "unittest.TestCase", "unittest2.TestCase"] ) def test_usefixtures_marker_on_unittest(base, testdir): module = base.rsplit(".", 1)[0] pytest.importorskip(module) testdir.makepyfile( conftest=""" import pytest @pytest.fixture(scope='function') def fixture1(request, monkeypatch): monkeypatch.setattr(request.instance, 'fixture1', True ) @pytest.fixture(scope='function') def fixture2(request, monkeypatch): monkeypatch.setattr(request.instance, 'fixture2', True ) def node_and_marks(item): print(item.nodeid) for mark in item.iter_markers(): print(" ", mark) @pytest.fixture(autouse=True) def my_marks(request): node_and_marks(request.node) def pytest_collection_modifyitems(items): for item in items: node_and_marks(item) """ ) testdir.makepyfile( """ import pytest import {module} class Tests({base}): fixture1 = False fixture2 = False @pytest.mark.usefixtures("fixture1") def test_one(self): assert self.fixture1 assert not self.fixture2 @pytest.mark.usefixtures("fixture1", "fixture2") def test_two(self): assert self.fixture1 assert self.fixture2 """.format( module=module, base=base ) ) result = testdir.runpytest("-s") > result.assert_outcomes(passed=2) ../../../../pytest-3.10.1/testing/test_unittest.py:995: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c61fa2810> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________ test_usefixtures_marker_on_unittest[unittest.TestCase] ____________ base = 'unittest.TestCase' testdir = @pytest.mark.issue(3498) @pytest.mark.parametrize( "base", ["six.moves.builtins.object", "unittest.TestCase", "unittest2.TestCase"] ) def test_usefixtures_marker_on_unittest(base, testdir): module = base.rsplit(".", 1)[0] pytest.importorskip(module) testdir.makepyfile( conftest=""" import pytest @pytest.fixture(scope='function') def fixture1(request, monkeypatch): monkeypatch.setattr(request.instance, 'fixture1', True ) @pytest.fixture(scope='function') def fixture2(request, monkeypatch): monkeypatch.setattr(request.instance, 'fixture2', True ) def node_and_marks(item): print(item.nodeid) for mark in item.iter_markers(): print(" ", mark) @pytest.fixture(autouse=True) def my_marks(request): node_and_marks(request.node) def pytest_collection_modifyitems(items): for item in items: node_and_marks(item) """ ) testdir.makepyfile( """ import pytest import {module} class Tests({base}): fixture1 = False fixture2 = False @pytest.mark.usefixtures("fixture1") def test_one(self): assert self.fixture1 assert not self.fixture2 @pytest.mark.usefixtures("fixture1", "fixture2") def test_two(self): assert self.fixture1 assert self.fixture2 """.format( module=module, base=base ) ) result = testdir.runpytest("-s") > result.assert_outcomes(passed=2) ../../../../pytest-3.10.1/testing/test_unittest.py:995: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c620243d0> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ test_testcase_handles_init_exceptions _____________________ testdir = def test_testcase_handles_init_exceptions(testdir): """ Regression test to make sure exceptions in the __init__ method are bubbled up correctly. See https://github.com/pytest-dev/pytest/issues/3788 """ testdir.makepyfile( """ from unittest import TestCase import pytest class MyTestCase(TestCase): def __init__(self, *args, **kwargs): raise Exception("should raise this exception") def test_hello(self): pass """ ) result = testdir.runpytest() > assert "should raise this exception" in result.stdout.str() E AssertionError: assert 'should raise this exception' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c617c3610>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c617c3610> = <_pytest.pytester.RunResult object at 0x7f5c617c3a10>.stdout ../../../../pytest-3.10.1/testing/test_unittest.py:1015: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ test_error_message_with_parametrized_fixtures _________________ testdir = def test_error_message_with_parametrized_fixtures(testdir): testdir.copy_example("unittest/test_parametrized_fixture_error_message.py") result = testdir.runpytest() result.stdout.fnmatch_lines( [ "*test_two does not support fixtures*", "*TestSomethingElse::test_two", > "*Function type: TestCaseFunction", ] ) E Failed: nomatch: '*test_two does not support fixtures*' E and: '' E remains unmatched: '*test_two does not support fixtures*' ../../../../pytest-3.10.1/testing/test_unittest.py:1026: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ test_as_errors[cmdline] ____________________________ testdir = 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 """ ) result = testdir.runpytest(*args) result.stdout.fnmatch_lines( [ "E UserWarning: user warning", "as_errors_module.py:3: UserWarning", > "* 1 failed in *", ] ) E Failed: nomatch: 'E UserWarning: user warning' E and: '' E remains unmatched: 'E UserWarning: user warning' ../../../../pytest-3.10.1/testing/test_warnings.py:106: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________________ test_as_errors[ini] ______________________________ testdir = 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 """ ) result = testdir.runpytest(*args) result.stdout.fnmatch_lines( [ "E UserWarning: user warning", "as_errors_module.py:3: UserWarning", > "* 1 failed in *", ] ) E Failed: nomatch: 'E UserWarning: user warning' E and: '' E remains unmatched: 'E UserWarning: user warning' ../../../../pytest-3.10.1/testing/test_warnings.py:106: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________________ test_ignore[cmdline] _____________________________ testdir = pyfile_with_warnings = None, method = 'cmdline' @pytest.mark.parametrize("method", ["cmdline", "ini"]) def test_ignore(testdir, pyfile_with_warnings, method): args = ("-W", "ignore") if method == "cmdline" else () if method == "ini": testdir.makeini( """ [pytest] filterwarnings= ignore """ ) result = testdir.runpytest(*args) > result.stdout.fnmatch_lines(["* 1 passed in *"]) E Failed: nomatch: '* 1 passed in *' E and: '' E remains unmatched: '* 1 passed in *' ../../../../pytest-3.10.1/testing/test_warnings.py:123: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________________ test_ignore[ini] _______________________________ testdir = pyfile_with_warnings = None, method = 'ini' @pytest.mark.parametrize("method", ["cmdline", "ini"]) def test_ignore(testdir, pyfile_with_warnings, method): args = ("-W", "ignore") if method == "cmdline" else () if method == "ini": testdir.makeini( """ [pytest] filterwarnings= ignore """ ) result = testdir.runpytest(*args) > result.stdout.fnmatch_lines(["* 1 passed in *"]) E Failed: nomatch: '* 1 passed in *' E and: '' E remains unmatched: '* 1 passed in *' ../../../../pytest-3.10.1/testing/test_warnings.py:123: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________________ test_py2_unicode_ascii ____________________________ testdir = def test_py2_unicode_ascii(testdir): """Ensure that our warning about 'unicode warnings containing non-ascii messages' does not trigger with ascii-convertible messages""" testdir.makeini("[pytest]") testdir.makepyfile( """ import pytest import warnings @pytest.mark.filterwarnings('always') def test_func(): warnings.warn(u"hello") """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ "*== %s ==*" % WARNINGS_SUMMARY_HEADER, '*warnings.warn(u"hello")', > "* 1 passed, 1 warnings in*", ] ) E Failed: nomatch: '*== warnings summary ==*' E and: '' E remains unmatched: '*== warnings summary ==*' ../../../../pytest-3.10.1/testing/test_warnings.py:215: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ test_works_with_filterwarnings ________________________ testdir = def test_works_with_filterwarnings(testdir): """Ensure our warnings capture does not mess with pre-installed filters (#2430).""" testdir.makepyfile( """ import warnings class MyWarning(Warning): pass warnings.filterwarnings("error", category=MyWarning) class TestWarnings(object): def test_my_warning(self): try: warnings.warn(MyWarning("warn!")) assert False except MyWarning: assert True """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*== 1 passed in *"]) E Failed: nomatch: '*== 1 passed in *' E and: '' E remains unmatched: '*== 1 passed in *' ../../../../pytest-3.10.1/testing/test_warnings.py:241: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ test_filterwarnings_mark[ini] _________________________ testdir = default_config = 'ini' @pytest.mark.parametrize("default_config", ["ini", "cmdline"]) def test_filterwarnings_mark(testdir, default_config): """ Test ``filterwarnings`` mark works and takes precedence over command line and ini options. """ if default_config == "ini": testdir.makeini( """ [pytest] filterwarnings = always """ ) testdir.makepyfile( """ import warnings import pytest @pytest.mark.filterwarnings('ignore::RuntimeWarning') def test_ignore_runtime_warning(): warnings.warn(RuntimeWarning()) @pytest.mark.filterwarnings('error') def test_warning_error(): warnings.warn(RuntimeWarning()) def test_show_warning(): warnings.warn(RuntimeWarning()) """ ) result = testdir.runpytest("-W always" if default_config == "cmdline" else "") > result.stdout.fnmatch_lines(["*= 1 failed, 2 passed, 1 warnings in *"]) E Failed: nomatch: '*= 1 failed, 2 passed, 1 warnings in *' E and: '' E remains unmatched: '*= 1 failed, 2 passed, 1 warnings in *' ../../../../pytest-3.10.1/testing/test_warnings.py:274: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ test_filterwarnings_mark[cmdline] _______________________ testdir = default_config = 'cmdline' @pytest.mark.parametrize("default_config", ["ini", "cmdline"]) def test_filterwarnings_mark(testdir, default_config): """ Test ``filterwarnings`` mark works and takes precedence over command line and ini options. """ if default_config == "ini": testdir.makeini( """ [pytest] filterwarnings = always """ ) testdir.makepyfile( """ import warnings import pytest @pytest.mark.filterwarnings('ignore::RuntimeWarning') def test_ignore_runtime_warning(): warnings.warn(RuntimeWarning()) @pytest.mark.filterwarnings('error') def test_warning_error(): warnings.warn(RuntimeWarning()) def test_show_warning(): warnings.warn(RuntimeWarning()) """ ) result = testdir.runpytest("-W always" if default_config == "cmdline" else "") > result.stdout.fnmatch_lines(["*= 1 failed, 2 passed, 1 warnings in *"]) E Failed: nomatch: '*= 1 failed, 2 passed, 1 warnings in *' E and: '' E remains unmatched: '*= 1 failed, 2 passed, 1 warnings in *' ../../../../pytest-3.10.1/testing/test_warnings.py:274: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ test_non_string_warning_argument _______________________ testdir = def test_non_string_warning_argument(testdir): """Non-str argument passed to warning breaks pytest (#2956)""" testdir.makepyfile( """ import warnings import pytest def test(): warnings.warn(UserWarning(1, u'foo')) """ ) result = testdir.runpytest("-W", "always") > result.stdout.fnmatch_lines(["*= 1 passed, 1 warnings in *"]) E Failed: nomatch: '*= 1 passed, 1 warnings in *' E and: '' E remains unmatched: '*= 1 passed, 1 warnings in *' ../../../../pytest-3.10.1/testing/test_warnings.py:289: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ test_filterwarnings_mark_registration _____________________ testdir = def test_filterwarnings_mark_registration(testdir): """Ensure filterwarnings mark is registered""" testdir.makepyfile( """ import pytest @pytest.mark.filterwarnings('error') def test_func(): pass """ ) result = testdir.runpytest("--strict") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c61de1d90>.ret ../../../../pytest-3.10.1/testing/test_warnings.py:304: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ test_option_precedence_cmdline_over_ini[True] _________________ testdir = ignore_on_cmdline = True @pytest.mark.parametrize("ignore_on_cmdline", [True, False]) def test_option_precedence_cmdline_over_ini(testdir, ignore_on_cmdline): """filters defined in the command-line should take precedence over filters in ini files (#3946).""" testdir.makeini( """ [pytest] filterwarnings = error """ ) testdir.makepyfile( """ import warnings def test(): warnings.warn(UserWarning('hello')) """ ) args = ["-W", "ignore"] if ignore_on_cmdline else [] result = testdir.runpytest(*args) if ignore_on_cmdline: > result.stdout.fnmatch_lines(["* 1 passed in*"]) E Failed: nomatch: '* 1 passed in*' E and: '' E remains unmatched: '* 1 passed in*' ../../../../pytest-3.10.1/testing/test_warnings.py:455: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ test_option_precedence_cmdline_over_ini[False] ________________ testdir = ignore_on_cmdline = False @pytest.mark.parametrize("ignore_on_cmdline", [True, False]) def test_option_precedence_cmdline_over_ini(testdir, ignore_on_cmdline): """filters defined in the command-line should take precedence over filters in ini files (#3946).""" testdir.makeini( """ [pytest] filterwarnings = error """ ) testdir.makepyfile( """ import warnings def test(): warnings.warn(UserWarning('hello')) """ ) args = ["-W", "ignore"] if ignore_on_cmdline else [] result = testdir.runpytest(*args) if ignore_on_cmdline: result.stdout.fnmatch_lines(["* 1 passed in*"]) else: > result.stdout.fnmatch_lines(["* 1 failed in*"]) E Failed: nomatch: '* 1 failed in*' E and: '' E remains unmatched: '* 1 failed in*' ../../../../pytest-3.10.1/testing/test_warnings.py:457: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ test_option_precedence_mark __________________________ testdir = def test_option_precedence_mark(testdir): """Filters defined by marks should always take precedence (#3946).""" testdir.makeini( """ [pytest] filterwarnings = ignore """ ) testdir.makepyfile( """ import pytest, warnings @pytest.mark.filterwarnings('error') def test(): warnings.warn(UserWarning('hello')) """ ) result = testdir.runpytest("-W", "ignore") > result.stdout.fnmatch_lines(["* 1 failed in*"]) E Failed: nomatch: '* 1 failed in*' E and: '' E remains unmatched: '* 1 failed in*' ../../../../pytest-3.10.1/testing/test_warnings.py:477: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ test_match_raises_error ____________________________ testdir = def test_match_raises_error(testdir): testdir.makepyfile( """ import pytest def test_division_zero(): with pytest.raises(ZeroDivisionError) as excinfo: 0 / 0 excinfo.match(r'[123]+') """ ) result = testdir.runpytest() assert result.ret != 0 > result.stdout.fnmatch_lines(["*AssertionError*Pattern*[123]*not found*"]) E Failed: nomatch: '*AssertionError*Pattern*[123]*not found*' E and: '' E remains unmatched: '*AssertionError*Pattern*[123]*not found*' ../../../../pytest-3.10.1/testing/code/test_excinfo.py:432: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________________ test_cwd_deleted _______________________________ testdir = def test_cwd_deleted(testdir): testdir.makepyfile( """ def test(tmpdir): tmpdir.chdir() tmpdir.remove() assert False """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["* 1 failed in *"]) E Failed: nomatch: '* 1 failed in *' E and: '' E remains unmatched: '* 1 failed in *' ../../../../pytest-3.10.1/testing/code/test_excinfo.py:1360: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________________ test_fixture_help _______________________________ testdir = def test_fixture_help(testdir): result = testdir.runpytest("--fixtures") > result.stdout.fnmatch_lines(["*caplog*"]) E Failed: nomatch: '*caplog*' E and: '' E remains unmatched: '*caplog*' ../../../../pytest-3.10.1/testing/logging/test_fixture.py:12: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________________ test_change_level_undo ____________________________ testdir = def test_change_level_undo(testdir): """Ensure that 'set_level' is undone after the end of the test""" testdir.makepyfile( """ import logging def test1(caplog): caplog.set_level(logging.INFO) # using + operator here so fnmatch_lines doesn't match the code in the traceback logging.info('log from ' + 'test1') assert 0 def test2(caplog): # using + operator here so fnmatch_lines doesn't match the code in the traceback logging.info('log from ' + 'test2') assert 0 """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*log from test1*", "*2 failed in *"]) E Failed: nomatch: '*log from test1*' E and: '' E remains unmatched: '*log from test1*' ../../../../pytest-3.10.1/testing/logging/test_fixture.py:49: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________________ test_nothing_logged ______________________________ testdir = def test_nothing_logged(testdir): testdir.makepyfile( """ import sys def test_foo(): sys.stdout.write('text going to stdout') sys.stderr.write('text going to stderr') assert False """ ) result = testdir.runpytest() > assert result.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c61efe5d0>.ret ../../../../pytest-3.10.1/testing/logging/test_reporting.py:23: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________________ test_messages_logged _____________________________ testdir = def test_messages_logged(testdir): testdir.makepyfile( """ import sys import logging logger = logging.getLogger(__name__) def test_foo(): sys.stdout.write('text going to stdout') sys.stderr.write('text going to stderr') logger.info('text going to logger') assert False """ ) result = testdir.runpytest("--log-level=INFO") > assert result.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63cb02d0>.ret ../../../../pytest-3.10.1/testing/logging/test_reporting.py:46: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________ test_root_logger_affected ___________________________ testdir = def test_root_logger_affected(testdir): testdir.makepyfile( """ import logging logger = logging.getLogger() def test_foo(): logger.info('info text ' + 'going to logger') logger.warning('warning text ' + 'going to logger') logger.error('error text ' + 'going to logger') assert 0 """ ) log_file = testdir.tmpdir.join("pytest.log").strpath result = testdir.runpytest("--log-level=ERROR", "--log-file=pytest.log") > assert result.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c624c22d0>.ret ../../../../pytest-3.10.1/testing/logging/test_reporting.py:67: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ test_log_cli_level_log_level_interaction ___________________ testdir = def test_log_cli_level_log_level_interaction(testdir): testdir.makepyfile( """ import logging logger = logging.getLogger() def test_foo(): logger.debug('debug text ' + 'going to logger') logger.info('info text ' + 'going to logger') logger.warning('warning text ' + 'going to logger') logger.error('error text ' + 'going to logger') assert 0 """ ) result = testdir.runpytest("--log-cli-level=INFO", "--log-level=ERROR") > assert result.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c61e2b8d0>.ret ../../../../pytest-3.10.1/testing/logging/test_reporting.py:104: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________________ test_setup_logging ______________________________ testdir = def test_setup_logging(testdir): testdir.makepyfile( """ import logging logger = logging.getLogger(__name__) def setup_function(function): logger.info('text going to logger from setup') def test_foo(): logger.info('text going to logger from call') assert False """ ) result = testdir.runpytest("--log-level=INFO") > assert result.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c61cad690>.ret ../../../../pytest-3.10.1/testing/logging/test_reporting.py:134: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________________ test_teardown_logging _____________________________ testdir = def test_teardown_logging(testdir): testdir.makepyfile( """ import logging logger = logging.getLogger(__name__) def test_foo(): logger.info('text going to logger from call') def teardown_function(function): logger.info('text going to logger from teardown') assert False """ ) result = testdir.runpytest("--log-level=INFO") > assert result.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63c4c710>.ret ../../../../pytest-3.10.1/testing/logging/test_reporting.py:161: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________ test_disable_log_capturing __________________________ testdir = def test_disable_log_capturing(testdir): testdir.makepyfile( """ import sys import logging logger = logging.getLogger(__name__) def test_foo(): sys.stdout.write('text going to stdout') logger.warning('catch me if you can!') sys.stderr.write('text going to stderr') assert False """ ) result = testdir.runpytest("--no-print-logs") print(result.stdout) > assert result.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c648ee290>.ret ../../../../pytest-3.10.1/testing/logging/test_reporting.py:189: AssertionError ----------------------------- Captured stdout call ----------------------------- <_pytest.pytester.LineMatcher object at 0x7f5c63c3e750> ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ test_disable_log_capturing_ini ________________________ testdir = def test_disable_log_capturing_ini(testdir): testdir.makeini( """ [pytest] log_print=False """ ) testdir.makepyfile( """ import sys import logging logger = logging.getLogger(__name__) def test_foo(): sys.stdout.write('text going to stdout') logger.warning('catch me if you can!') sys.stderr.write('text going to stderr') assert False """ ) result = testdir.runpytest() print(result.stdout) > assert result.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c64247ed0>.ret ../../../../pytest-3.10.1/testing/logging/test_reporting.py:219: AssertionError ----------------------------- Captured stdout call ----------------------------- <_pytest.pytester.LineMatcher object at 0x7f5c61b0efd0> ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ test_log_cli_enabled_disabled[True] ______________________ testdir = enabled = True @pytest.mark.parametrize("enabled", [True, False]) def test_log_cli_enabled_disabled(testdir, enabled): msg = "critical message logged by test" testdir.makepyfile( """ import logging def test_log_cli(): logging.critical("{}") """.format( msg ) ) if enabled: testdir.makeini( """ [pytest] log_cli=true """ ) result = testdir.runpytest() if enabled: result.stdout.fnmatch_lines( [ "test_log_cli_enabled_disabled.py::test_log_cli ", "*-- live log call --*", "test_log_cli_enabled_disabled.py* CRITICAL critical message logged by test", > "PASSED*", ] ) E Failed: nomatch: 'test_log_cli_enabled_disabled.py::test_log_cli ' E and: '' E remains unmatched: 'test_log_cli_enabled_disabled.py::test_log_cli ' ../../../../pytest-3.10.1/testing/logging/test_reporting.py:252: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________ test_log_cli_default_level __________________________ testdir = def test_log_cli_default_level(testdir): # Default log file level testdir.makepyfile( """ import pytest import logging def test_log_cli(request): plugin = request.config.pluginmanager.getplugin('logging-plugin') assert plugin.log_cli_handler.level == logging.NOTSET logging.getLogger('catchlog').info("INFO message won't be shown") logging.getLogger('catchlog').warning("WARNING message will be shown") """ ) testdir.makeini( """ [pytest] log_cli=true """ ) result = testdir.runpytest() # fnmatch_lines does an assertion internally result.stdout.fnmatch_lines( [ "test_log_cli_default_level.py::test_log_cli ", > "test_log_cli_default_level.py*WARNING message will be shown*", ] ) E Failed: nomatch: 'test_log_cli_default_level.py::test_log_cli ' E and: '' E remains unmatched: 'test_log_cli_default_level.py::test_log_cli ' ../../../../pytest-3.10.1/testing/logging/test_reporting.py:285: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ test_log_cli_default_level_multiple_tests ___________________ testdir = request = > def test_log_cli_default_level_multiple_tests(testdir, request): """Ensure we reset the first newline added by the live logger between tests""" filename = request.node.name + ".py" testdir.makepyfile( """ import logging def test_log_1(): logging.warning("log message from test_log_1") def test_log_2(): logging.warning("log message from test_log_2") """ ) testdir.makeini( """ [pytest] log_cli=true """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ "{}::test_log_1 ".format(filename), "*WARNING*log message from test_log_1*", "PASSED *50%*", "{}::test_log_2 ".format(filename), "*WARNING*log message from test_log_2*", "PASSED *100%*", > "=* 2 passed in *=", ] ) E Failed: nomatch: 'test_log_cli_default_level_multiple_tests.py::test_log_1 ' E and: '' E remains unmatched: 'test_log_cli_default_level_multiple_tests.py::test_log_1 ' ../../../../pytest-3.10.1/testing/logging/test_reporting.py:323: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ test_log_cli_default_level_sections ______________________ testdir = request = > def test_log_cli_default_level_sections(testdir, request): """Check that with live logging enable we are printing the correct headers during start/setup/call/teardown/finish.""" filename = request.node.name + ".py" testdir.makeconftest( """ import pytest import logging def pytest_runtest_logstart(): logging.warning('>>>>> START >>>>>') def pytest_runtest_logfinish(): logging.warning('<<<<< END <<<<<<<') """ ) testdir.makepyfile( """ import pytest import logging @pytest.fixture def fix(request): logging.warning("log message from setup of {}".format(request.node.name)) yield logging.warning("log message from teardown of {}".format(request.node.name)) def test_log_1(fix): logging.warning("log message from test_log_1") def test_log_2(fix): logging.warning("log message from test_log_2") """ ) testdir.makeini( """ [pytest] log_cli=true """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ "{}::test_log_1 ".format(filename), "*-- live log start --*", "*WARNING* >>>>> START >>>>>*", "*-- live log setup --*", "*WARNING*log message from setup of test_log_1*", "*-- live log call --*", "*WARNING*log message from test_log_1*", "PASSED *50%*", "*-- live log teardown --*", "*WARNING*log message from teardown of test_log_1*", "*-- live log finish --*", "*WARNING* <<<<< END <<<<<<<*", "{}::test_log_2 ".format(filename), "*-- live log start --*", "*WARNING* >>>>> START >>>>>*", "*-- live log setup --*", "*WARNING*log message from setup of test_log_2*", "*-- live log call --*", "*WARNING*log message from test_log_2*", "PASSED *100%*", "*-- live log teardown --*", "*WARNING*log message from teardown of test_log_2*", "*-- live log finish --*", "*WARNING* <<<<< END <<<<<<<*", > "=* 2 passed in *=", ] ) E Failed: nomatch: 'test_log_cli_default_level_sections.py::test_log_1 ' E and: '' E remains unmatched: 'test_log_cli_default_level_sections.py::test_log_1 ' ../../../../pytest-3.10.1/testing/logging/test_reporting.py:397: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ test_live_logs_unknown_sections ________________________ testdir = request = > def test_live_logs_unknown_sections(testdir, request): """Check that with live logging enable we are printing the correct headers during start/setup/call/teardown/finish.""" filename = request.node.name + ".py" testdir.makeconftest( """ import pytest import logging def pytest_runtest_protocol(item, nextitem): logging.warning('Unknown Section!') def pytest_runtest_logstart(): logging.warning('>>>>> START >>>>>') def pytest_runtest_logfinish(): logging.warning('<<<<< END <<<<<<<') """ ) testdir.makepyfile( """ import pytest import logging @pytest.fixture def fix(request): logging.warning("log message from setup of {}".format(request.node.name)) yield logging.warning("log message from teardown of {}".format(request.node.name)) def test_log_1(fix): logging.warning("log message from test_log_1") """ ) testdir.makeini( """ [pytest] log_cli=true """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ "*WARNING*Unknown Section*", "{}::test_log_1 ".format(filename), "*WARNING* >>>>> START >>>>>*", "*-- live log setup --*", "*WARNING*log message from setup of test_log_1*", "*-- live log call --*", "*WARNING*log message from test_log_1*", "PASSED *100%*", "*-- live log teardown --*", "*WARNING*log message from teardown of test_log_1*", "*WARNING* <<<<< END <<<<<<<*", > "=* 1 passed in *=", ] ) E Failed: nomatch: '*WARNING*Unknown Section*' E and: '' E remains unmatched: '*WARNING*Unknown Section*' ../../../../pytest-3.10.1/testing/logging/test_reporting.py:459: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ test_sections_single_new_line_after_test_outcome _______________ testdir = request = > def test_sections_single_new_line_after_test_outcome(testdir, request): """Check that only a single new line is written between log messages during teardown/finish.""" filename = request.node.name + ".py" testdir.makeconftest( """ import pytest import logging def pytest_runtest_logstart(): logging.warning('>>>>> START >>>>>') def pytest_runtest_logfinish(): logging.warning('<<<<< END <<<<<<<') logging.warning('<<<<< END <<<<<<<') """ ) testdir.makepyfile( """ import pytest import logging @pytest.fixture def fix(request): logging.warning("log message from setup of {}".format(request.node.name)) yield logging.warning("log message from teardown of {}".format(request.node.name)) logging.warning("log message from teardown of {}".format(request.node.name)) def test_log_1(fix): logging.warning("log message from test_log_1") """ ) testdir.makeini( """ [pytest] log_cli=true """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ "{}::test_log_1 ".format(filename), "*-- live log start --*", "*WARNING* >>>>> START >>>>>*", "*-- live log setup --*", "*WARNING*log message from setup of test_log_1*", "*-- live log call --*", "*WARNING*log message from test_log_1*", "PASSED *100%*", "*-- live log teardown --*", "*WARNING*log message from teardown of test_log_1*", "*-- live log finish --*", "*WARNING* <<<<< END <<<<<<<*", "*WARNING* <<<<< END <<<<<<<*", > "=* 1 passed in *=", ] ) E Failed: nomatch: 'test_sections_single_new_line_after_test_outcome.py::test_log_1 ' E and: '' E remains unmatched: 'test_sections_single_new_line_after_test_outcome.py::test_log_1 ' ../../../../pytest-3.10.1/testing/logging/test_reporting.py:521: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________________ test_log_cli_level ______________________________ testdir = def test_log_cli_level(testdir): # Default log file level testdir.makepyfile( """ import pytest import logging def test_log_cli(request): plugin = request.config.pluginmanager.getplugin('logging-plugin') assert plugin.log_cli_handler.level == logging.INFO logging.getLogger('catchlog').debug("This log message won't be shown") logging.getLogger('catchlog').info("This log message will be shown") print('PASSED') """ ) testdir.makeini( """ [pytest] log_cli=true """ ) result = testdir.runpytest("-s", "--log-cli-level=INFO") # fnmatch_lines does an assertion internally result.stdout.fnmatch_lines( [ "test_log_cli_level.py*This log message will be shown", > "PASSED", # 'PASSED' on its own line because the log message prints a new line ] ) E Failed: nomatch: 'test_log_cli_level.py*This log message will be shown' E and: '' E remains unmatched: 'test_log_cli_level.py*This log message will be shown' ../../../../pytest-3.10.1/testing/logging/test_reporting.py:569: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________________ test_log_cli_ini_level ____________________________ testdir = def test_log_cli_ini_level(testdir): testdir.makeini( """ [pytest] log_cli=true log_cli_level = INFO """ ) testdir.makepyfile( """ import pytest import logging def test_log_cli(request): plugin = request.config.pluginmanager.getplugin('logging-plugin') assert plugin.log_cli_handler.level == logging.INFO logging.getLogger('catchlog').debug("This log message won't be shown") logging.getLogger('catchlog').info("This log message will be shown") print('PASSED') """ ) result = testdir.runpytest("-s") # fnmatch_lines does an assertion internally result.stdout.fnmatch_lines( [ "test_log_cli_ini_level.py* This log message will be shown", > "PASSED", # 'PASSED' on its own line because the log message prints a new line ] ) E Failed: nomatch: 'test_log_cli_ini_level.py* This log message will be shown' E and: '' E remains unmatched: 'test_log_cli_ini_level.py* This log message will be shown' ../../../../pytest-3.10.1/testing/logging/test_reporting.py:619: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________ test_log_cli_auto_enable[] __________________________ testdir = request = > cli_args = '' @pytest.mark.parametrize( "cli_args", ["", "--log-level=WARNING", "--log-file-level=WARNING", "--log-cli-level=WARNING"], ) def test_log_cli_auto_enable(testdir, request, cli_args): """Check that live logs are enabled if --log-level or --log-cli-level is passed on the CLI. It should not be auto enabled if the same configs are set on the INI file. """ testdir.makepyfile( """ import pytest import logging def test_log_1(): logging.info("log message from test_log_1 not to be shown") logging.warning("log message from test_log_1") """ ) testdir.makeini( """ [pytest] log_level=INFO log_cli_level=INFO """ ) result = testdir.runpytest(cli_args) if cli_args == "--log-cli-level=WARNING": result.stdout.fnmatch_lines( [ "*::test_log_1 ", "*-- live log call --*", "*WARNING*log message from test_log_1*", "PASSED *100%*", "=* 1 passed in *=", ] ) assert "INFO" not in result.stdout.str() else: result.stdout.fnmatch_lines( > ["*test_log_cli_auto_enable*100%*", "=* 1 passed in *="] ) E Failed: nomatch: '*test_log_cli_auto_enable*100%*' E and: '' E remains unmatched: '*test_log_cli_auto_enable*100%*' ../../../../pytest-3.10.1/testing/logging/test_reporting.py:669: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ test_log_cli_auto_enable[--log-level=WARNING] _________________ testdir = request = > cli_args = '--log-level=WARNING' @pytest.mark.parametrize( "cli_args", ["", "--log-level=WARNING", "--log-file-level=WARNING", "--log-cli-level=WARNING"], ) def test_log_cli_auto_enable(testdir, request, cli_args): """Check that live logs are enabled if --log-level or --log-cli-level is passed on the CLI. It should not be auto enabled if the same configs are set on the INI file. """ testdir.makepyfile( """ import pytest import logging def test_log_1(): logging.info("log message from test_log_1 not to be shown") logging.warning("log message from test_log_1") """ ) testdir.makeini( """ [pytest] log_level=INFO log_cli_level=INFO """ ) result = testdir.runpytest(cli_args) if cli_args == "--log-cli-level=WARNING": result.stdout.fnmatch_lines( [ "*::test_log_1 ", "*-- live log call --*", "*WARNING*log message from test_log_1*", "PASSED *100%*", "=* 1 passed in *=", ] ) assert "INFO" not in result.stdout.str() else: result.stdout.fnmatch_lines( > ["*test_log_cli_auto_enable*100%*", "=* 1 passed in *="] ) E Failed: nomatch: '*test_log_cli_auto_enable*100%*' E and: '' E remains unmatched: '*test_log_cli_auto_enable*100%*' ../../../../pytest-3.10.1/testing/logging/test_reporting.py:669: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ test_log_cli_auto_enable[--log-file-level=WARNING] ______________ testdir = request = > cli_args = '--log-file-level=WARNING' @pytest.mark.parametrize( "cli_args", ["", "--log-level=WARNING", "--log-file-level=WARNING", "--log-cli-level=WARNING"], ) def test_log_cli_auto_enable(testdir, request, cli_args): """Check that live logs are enabled if --log-level or --log-cli-level is passed on the CLI. It should not be auto enabled if the same configs are set on the INI file. """ testdir.makepyfile( """ import pytest import logging def test_log_1(): logging.info("log message from test_log_1 not to be shown") logging.warning("log message from test_log_1") """ ) testdir.makeini( """ [pytest] log_level=INFO log_cli_level=INFO """ ) result = testdir.runpytest(cli_args) if cli_args == "--log-cli-level=WARNING": result.stdout.fnmatch_lines( [ "*::test_log_1 ", "*-- live log call --*", "*WARNING*log message from test_log_1*", "PASSED *100%*", "=* 1 passed in *=", ] ) assert "INFO" not in result.stdout.str() else: result.stdout.fnmatch_lines( > ["*test_log_cli_auto_enable*100%*", "=* 1 passed in *="] ) E Failed: nomatch: '*test_log_cli_auto_enable*100%*' E and: '' E remains unmatched: '*test_log_cli_auto_enable*100%*' ../../../../pytest-3.10.1/testing/logging/test_reporting.py:669: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ test_log_cli_auto_enable[--log-cli-level=WARNING] _______________ testdir = request = > cli_args = '--log-cli-level=WARNING' @pytest.mark.parametrize( "cli_args", ["", "--log-level=WARNING", "--log-file-level=WARNING", "--log-cli-level=WARNING"], ) def test_log_cli_auto_enable(testdir, request, cli_args): """Check that live logs are enabled if --log-level or --log-cli-level is passed on the CLI. It should not be auto enabled if the same configs are set on the INI file. """ testdir.makepyfile( """ import pytest import logging def test_log_1(): logging.info("log message from test_log_1 not to be shown") logging.warning("log message from test_log_1") """ ) testdir.makeini( """ [pytest] log_level=INFO log_cli_level=INFO """ ) result = testdir.runpytest(cli_args) if cli_args == "--log-cli-level=WARNING": result.stdout.fnmatch_lines( [ "*::test_log_1 ", "*-- live log call --*", "*WARNING*log message from test_log_1*", "PASSED *100%*", > "=* 1 passed in *=", ] ) E Failed: nomatch: '*::test_log_1 ' E and: '' E remains unmatched: '*::test_log_1 ' ../../../../pytest-3.10.1/testing/logging/test_reporting.py:663: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________________ test_log_file_cli _______________________________ testdir = def test_log_file_cli(testdir): # Default log file level testdir.makepyfile( """ import pytest import logging def test_log_file(request): plugin = request.config.pluginmanager.getplugin('logging-plugin') assert plugin.log_file_handler.level == logging.WARNING logging.getLogger('catchlog').info("This log message won't be shown") logging.getLogger('catchlog').warning("This log message will be shown") print('PASSED') """ ) log_file = testdir.tmpdir.join("pytest.log").strpath result = testdir.runpytest( "-s", "--log-file={}".format(log_file), "--log-file-level=WARNING" ) # fnmatch_lines does an assertion internally > result.stdout.fnmatch_lines(["test_log_file_cli.py PASSED"]) E Failed: nomatch: 'test_log_file_cli.py PASSED' E and: '' E remains unmatched: 'test_log_file_cli.py PASSED' ../../../../pytest-3.10.1/testing/logging/test_reporting.py:697: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ test_log_file_cli_level ____________________________ testdir = def test_log_file_cli_level(testdir): # Default log file level testdir.makepyfile( """ import pytest import logging def test_log_file(request): plugin = request.config.pluginmanager.getplugin('logging-plugin') assert plugin.log_file_handler.level == logging.INFO logging.getLogger('catchlog').debug("This log message won't be shown") logging.getLogger('catchlog').info("This log message will be shown") print('PASSED') """ ) log_file = testdir.tmpdir.join("pytest.log").strpath result = testdir.runpytest( "-s", "--log-file={}".format(log_file), "--log-file-level=INFO" ) # fnmatch_lines does an assertion internally > result.stdout.fnmatch_lines(["test_log_file_cli_level.py PASSED"]) E Failed: nomatch: 'test_log_file_cli_level.py PASSED' E and: '' E remains unmatched: 'test_log_file_cli_level.py PASSED' ../../../../pytest-3.10.1/testing/logging/test_reporting.py:730: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ test_log_level_not_changed_by_default _____________________ testdir = def test_log_level_not_changed_by_default(testdir): testdir.makepyfile( """ import logging def test_log_file(): assert logging.getLogger().level == logging.WARNING """ ) result = testdir.runpytest("-s") > result.stdout.fnmatch_lines("* 1 passed in *") E Failed: nomatch: '* 1 passed in *' E and: '' E remains unmatched: '* 1 passed in *' ../../../../pytest-3.10.1/testing/logging/test_reporting.py:750: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________________ test_log_file_ini _______________________________ testdir = def test_log_file_ini(testdir): log_file = testdir.tmpdir.join("pytest.log").strpath testdir.makeini( """ [pytest] log_file={} log_file_level=WARNING """.format( log_file ) ) testdir.makepyfile( """ import pytest import logging def test_log_file(request): plugin = request.config.pluginmanager.getplugin('logging-plugin') assert plugin.log_file_handler.level == logging.WARNING logging.getLogger('catchlog').info("This log message won't be shown") logging.getLogger('catchlog').warning("This log message will be shown") print('PASSED') """ ) result = testdir.runpytest("-s") # fnmatch_lines does an assertion internally > result.stdout.fnmatch_lines(["test_log_file_ini.py PASSED"]) E Failed: nomatch: 'test_log_file_ini.py PASSED' E and: '' E remains unmatched: 'test_log_file_ini.py PASSED' ../../../../pytest-3.10.1/testing/logging/test_reporting.py:781: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ test_log_file_ini_level ____________________________ testdir = def test_log_file_ini_level(testdir): log_file = testdir.tmpdir.join("pytest.log").strpath testdir.makeini( """ [pytest] log_file={} log_file_level = INFO """.format( log_file ) ) testdir.makepyfile( """ import pytest import logging def test_log_file(request): plugin = request.config.pluginmanager.getplugin('logging-plugin') assert plugin.log_file_handler.level == logging.INFO logging.getLogger('catchlog').debug("This log message won't be shown") logging.getLogger('catchlog').info("This log message will be shown") print('PASSED') """ ) result = testdir.runpytest("-s") # fnmatch_lines does an assertion internally > result.stdout.fnmatch_lines(["test_log_file_ini_level.py PASSED"]) E Failed: nomatch: 'test_log_file_ini_level.py PASSED' E and: '' E remains unmatched: 'test_log_file_ini_level.py PASSED' ../../../../pytest-3.10.1/testing/logging/test_reporting.py:820: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________________ test_log_file_unicode _____________________________ testdir = def test_log_file_unicode(testdir): log_file = testdir.tmpdir.join("pytest.log").strpath testdir.makeini( """ [pytest] log_file={} log_file_level = INFO """.format( log_file ) ) testdir.makepyfile( """ # -*- coding: utf-8 -*- from __future__ import unicode_literals import logging def test_log_file(): logging.getLogger('catchlog').info("Normal message") logging.getLogger('catchlog').info("├") logging.getLogger('catchlog').info("Another normal message") """ ) result = testdir.runpytest() # make sure that that we get a '0' exit code for the testsuite > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c61b4da90>.ret ../../../../pytest-3.10.1/testing/logging/test_reporting.py:859: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ test_collection_live_logging _________________________ testdir = def test_collection_live_logging(testdir): testdir.makepyfile( """ import logging logging.getLogger().info("Normal message") """ ) result = testdir.runpytest("--log-cli-level=INFO") result.stdout.fnmatch_lines( [ "collecting*", "*--- live log collection ---*", "*Normal message*", > "collected 0 items", ] ) E Failed: nomatch: 'collecting*' E and: '' E remains unmatched: 'collecting*' ../../../../pytest-3.10.1/testing/logging/test_reporting.py:928: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ test_collection_logging_to_file ________________________ testdir = def test_collection_logging_to_file(testdir): log_file = testdir.tmpdir.join("pytest.log").strpath testdir.makeini( """ [pytest] log_file={} log_file_level = INFO """.format( log_file ) ) testdir.makepyfile( """ import logging logging.getLogger().info("Normal message") def test_simple(): logging.getLogger().debug("debug message in test_simple") logging.getLogger().info("info message in test_simple") """ ) result = testdir.runpytest() assert "--- live log collection ---" not in result.stdout.str() > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63705590>.ret ../../../../pytest-3.10.1/testing/logging/test_reporting.py:962: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________________ test_log_in_hooks _______________________________ testdir = def test_log_in_hooks(testdir): log_file = testdir.tmpdir.join("pytest.log").strpath testdir.makeini( """ [pytest] log_file={} log_file_level = INFO log_cli=true """.format( log_file ) ) testdir.makeconftest( """ import logging def pytest_runtestloop(session): logging.info('runtestloop') def pytest_sessionstart(session): logging.info('sessionstart') def pytest_sessionfinish(session, exitstatus): logging.info('sessionfinish') """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*sessionstart*", "*runtestloop*", "*sessionfinish*"]) E Failed: nomatch: '*sessionstart*' E and: '' E remains unmatched: '*sessionstart*' ../../../../pytest-3.10.1/testing/logging/test_reporting.py:999: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ TestApprox.test_unicode_plus_minus ______________________ self = testdir = def test_unicode_plus_minus(self, testdir): """ Comparing approx instances inside lists should not produce an error in the detailed diff. Integration test for issue #2111. """ testdir.makepyfile( """ import pytest def test_foo(): assert [3] == [pytest.approx(4)] """ ) expected = "4.0e-06" result = testdir.runpytest() result.stdout.fnmatch_lines( > ["*At index 0 diff: 3 != 4 * {}".format(expected), "=* 1 failed in *="] ) E Failed: nomatch: '*At index 0 diff: 3 != 4 * 4.0e-06' E and: '' E remains unmatched: '*At index 0 diff: 3 != 4 * 4.0e-06' ../../../../pytest-3.10.1/testing/python/approx.py:444: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ TestModule.test_failing_import ________________________ self = testdir = def test_failing_import(self, testdir): > modcol = testdir.getmodulecol("import alksdjalskdjalkjals") ../../../../pytest-3.10.1/testing/python/collect.py:14: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________________ TestModule.test_import_duplicate _______________________ self = testdir = def test_import_duplicate(self, testdir): a = testdir.mkdir("a") b = testdir.mkdir("b") p = a.ensure("test_whatever.py") p.pyimport() del sys.modules["test_whatever"] b.ensure("test_whatever.py") result = testdir.runpytest() result.stdout.fnmatch_lines( [ "*import*mismatch*", "*imported*test_whatever*", "*%s*" % a.join("test_whatever.py"), "*not the same*", "*%s*" % b.join("test_whatever.py"), > "*HINT*", ] ) E Failed: nomatch: '*import*mismatch*' E and: '' E remains unmatched: '*import*mismatch*' ../../../../pytest-3.10.1/testing/python/collect.py:32: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ TestModule.test_import_prepend_append _____________________ self = testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c64dc0450> def test_import_prepend_append(self, testdir, monkeypatch): syspath = list(sys.path) monkeypatch.setattr(sys, "path", syspath) root1 = testdir.mkdir("root1") root2 = testdir.mkdir("root2") root1.ensure("x456.py") root2.ensure("x456.py") p = root2.join("test_x456.py") monkeypatch.syspath_prepend(str(root1)) p.write( textwrap.dedent( """\ import x456 def test(): assert x456.__file__.startswith({!r}) """.format( str(root2) ) ) ) with root2.as_cwd(): > reprec = testdir.inline_run("--import-mode=append") ../../../../pytest-3.10.1/testing/python/collect.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ TestModule.test_syntax_error_in_module ____________________ self = testdir = def test_syntax_error_in_module(self, testdir): > modcol = testdir.getmodulecol("this is a syntax error") ../../../../pytest-3.10.1/testing/python/collect.py:63: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________ TestModule.test_module_considers_pluginmanager_at_import ___________ self = testdir = def test_module_considers_pluginmanager_at_import(self, testdir): > modcol = testdir.getmodulecol("pytest_plugins='xasdlkj',") ../../../../pytest-3.10.1/testing/python/collect.py:68: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestModule.test_invalid_test_module_name ___________________ self = testdir = def test_invalid_test_module_name(self, testdir): a = testdir.mkdir("a") a.ensure("test_one.part1.py") result = testdir.runpytest("-rw") result.stdout.fnmatch_lines( [ "ImportError while importing test module*test_one.part1*", > "Hint: make sure your test modules/packages have valid Python names.", ] ) E Failed: nomatch: 'ImportError while importing test module*test_one.part1*' E and: '' E remains unmatched: 'ImportError while importing test module*test_one.part1*' ../../../../pytest-3.10.1/testing/python/collect.py:78: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestModule.test_show_traceback_import_error[0] ________________ self = testdir = verbose = 0 @pytest.mark.parametrize("verbose", [0, 1, 2]) def test_show_traceback_import_error(self, testdir, verbose): """Import errors when collecting modules should display the traceback (#1976). With low verbosity we omit pytest and internal modules, otherwise show all traceback entries. """ testdir.makepyfile( foo_traceback_import_error=""" from bar_traceback_import_error import NOT_AVAILABLE """, bar_traceback_import_error="", ) testdir.makepyfile( """ import foo_traceback_import_error """ ) args = ("-v",) * verbose result = testdir.runpytest(*args) result.stdout.fnmatch_lines( [ "ImportError while importing test module*", "Traceback:", "*from bar_traceback_import_error import NOT_AVAILABLE", > "*cannot import name *NOT_AVAILABLE*", ] ) E Failed: nomatch: 'ImportError while importing test module*' E and: '' E remains unmatched: 'ImportError while importing test module*' ../../../../pytest-3.10.1/testing/python/collect.py:106: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestModule.test_show_traceback_import_error[1] ________________ self = testdir = verbose = 1 @pytest.mark.parametrize("verbose", [0, 1, 2]) def test_show_traceback_import_error(self, testdir, verbose): """Import errors when collecting modules should display the traceback (#1976). With low verbosity we omit pytest and internal modules, otherwise show all traceback entries. """ testdir.makepyfile( foo_traceback_import_error=""" from bar_traceback_import_error import NOT_AVAILABLE """, bar_traceback_import_error="", ) testdir.makepyfile( """ import foo_traceback_import_error """ ) args = ("-v",) * verbose result = testdir.runpytest(*args) result.stdout.fnmatch_lines( [ "ImportError while importing test module*", "Traceback:", "*from bar_traceback_import_error import NOT_AVAILABLE", > "*cannot import name *NOT_AVAILABLE*", ] ) E Failed: nomatch: 'ImportError while importing test module*' E and: '' E remains unmatched: 'ImportError while importing test module*' ../../../../pytest-3.10.1/testing/python/collect.py:106: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestModule.test_show_traceback_import_error[2] ________________ self = testdir = verbose = 2 @pytest.mark.parametrize("verbose", [0, 1, 2]) def test_show_traceback_import_error(self, testdir, verbose): """Import errors when collecting modules should display the traceback (#1976). With low verbosity we omit pytest and internal modules, otherwise show all traceback entries. """ testdir.makepyfile( foo_traceback_import_error=""" from bar_traceback_import_error import NOT_AVAILABLE """, bar_traceback_import_error="", ) testdir.makepyfile( """ import foo_traceback_import_error """ ) args = ("-v",) * verbose result = testdir.runpytest(*args) result.stdout.fnmatch_lines( [ "ImportError while importing test module*", "Traceback:", "*from bar_traceback_import_error import NOT_AVAILABLE", > "*cannot import name *NOT_AVAILABLE*", ] ) E Failed: nomatch: 'ImportError while importing test module*' E and: '' E remains unmatched: 'ImportError while importing test module*' ../../../../pytest-3.10.1/testing/python/collect.py:106: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestModule.test_show_traceback_import_error_unicode ______________ self = testdir = def test_show_traceback_import_error_unicode(self, testdir): """Check test modules collected which raise ImportError with unicode messages are handled properly (#2336). """ testdir.makepyfile( u""" # -*- coding: utf-8 -*- raise ImportError(u'Something bad happened ☺') """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ "ImportError while importing test module*", "Traceback:", > "*raise ImportError*Something bad happened*", ] ) E Failed: nomatch: 'ImportError while importing test module*' E and: '' E remains unmatched: 'ImportError while importing test module*' ../../../../pytest-3.10.1/testing/python/collect.py:133: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ TestClass.test_class_with_init_warning ____________________ self = testdir = def test_class_with_init_warning(self, testdir): testdir.makepyfile( """ class TestClass1(object): def __init__(self): pass """ ) result = testdir.runpytest("-rw") result.stdout.fnmatch_lines( [ > "*cannot collect test class 'TestClass1' because it has a __init__ constructor" ] ) E Failed: nomatch: "*cannot collect test class 'TestClass1' because it has a __init__ constructor" E and: '' E remains unmatched: "*cannot collect test class 'TestClass1' because it has a __init__ constructor" ../../../../pytest-3.10.1/testing/python/collect.py:151: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestClass.test_class_subclassobject ______________________ self = testdir = def test_class_subclassobject(self, testdir): testdir.getmodulecol( """ class test(object): pass > """ ) ../../../../pytest-3.10.1/testing/python/collect.py:160: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________________ TestClass.test_static_method _________________________ self = testdir = def test_static_method(self, testdir): """Support for collecting staticmethod tests (#2528, #2699)""" testdir.getmodulecol( """ import pytest class Test(object): @staticmethod def test_something(): pass @pytest.fixture def fix(self): return 1 @staticmethod def test_fix(fix): assert fix == 1 > """ ) ../../../../pytest-3.10.1/testing/python/collect.py:182: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestClass.test_setup_teardown_class_as_classmethod ______________ self = testdir = def test_setup_teardown_class_as_classmethod(self, testdir): testdir.makepyfile( test_mod1=""" class TestClassMethod(object): @classmethod def setup_class(cls): pass def test_1(self): pass @classmethod def teardown_class(cls): pass """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/python/collect.py:202: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ TestClass.test_issue1035_obj_has_getattr ___________________ self = testdir = def test_issue1035_obj_has_getattr(self, testdir): modcol = testdir.getmodulecol( """ class Chameleon(object): def __getattr__(self, name): return True chameleon = Chameleon() > """ ) ../../../../pytest-3.10.1/testing/python/collect.py:211: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestClass.test_issue1579_namedtuple ______________________ self = testdir = def test_issue1579_namedtuple(self, testdir): testdir.makepyfile( """ import collections TestCase = collections.namedtuple('TestCase', ['a']) """ ) result = testdir.runpytest("-rw") result.stdout.fnmatch_lines( > "*cannot collect test class 'TestCase' " "because it has a __new__ constructor*" ) E Failed: nomatch: "*cannot collect test class 'TestCase' because it has a __new__ constructor*" E and: '' E remains unmatched: "*cannot collect test class 'TestCase' because it has a __new__ constructor*" ../../../../pytest-3.10.1/testing/python/collect.py:226: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ TestClass.test_issue2234_property _______________________ self = testdir = def test_issue2234_property(self, testdir): testdir.makepyfile( """ class TestCase(object): @property def prop(self): raise NotImplementedError() """ ) result = testdir.runpytest() > assert result.ret == EXIT_NOTESTSCOLLECTED E assert 3 == 5 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c6375ae10>.ret ../../../../pytest-3.10.1/testing/python/collect.py:240: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ TestGenerator.test_generative_functions ____________________ self = testdir = def test_generative_functions(self, testdir): modcol = testdir.getmodulecol( """ def func1(arg, arg2): assert arg == arg2 def test_gen(): yield func1, 17, 3*5 yield func1, 42, 6*7 > """ ) ../../../../pytest-3.10.1/testing/python/collect.py:256: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ TestGenerator.test_generative_methods _____________________ self = testdir = def test_generative_methods(self, testdir): modcol = testdir.getmodulecol( """ def func1(arg, arg2): assert arg == arg2 class TestGenMethods(object): def test_gen(self): yield func1, 17, 3*5 yield func1, 42, 6*7 > """ ) ../../../../pytest-3.10.1/testing/python/collect.py:278: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________ TestGenerator.test_generative_functions_with_explicit_names __________ self = testdir = def test_generative_functions_with_explicit_names(self, testdir): modcol = testdir.getmodulecol( """ def func1(arg, arg2): assert arg == arg2 def test_gen(): yield "seventeen", func1, 17, 3*5 yield "fortytwo", func1, 42, 6*7 > """ ) ../../../../pytest-3.10.1/testing/python/collect.py:298: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________ TestGenerator.test_generative_functions_unique_explicit_names _________ self = testdir = def test_generative_functions_unique_explicit_names(self, testdir): # generative modcol = testdir.getmodulecol( """ def func(): pass def test_gen(): yield "name", func yield "name", func > """ ) ../../../../pytest-3.10.1/testing/python/collect.py:321: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________ TestGenerator.test_generative_methods_with_explicit_names ___________ self = testdir = def test_generative_methods_with_explicit_names(self, testdir): modcol = testdir.getmodulecol( """ def func1(arg, arg2): assert arg == arg2 class TestGenMethods(object): def test_gen(self): yield "m1", func1, 17, 3*5 yield "m2", func1, 42, 6*7 > """ ) ../../../../pytest-3.10.1/testing/python/collect.py:338: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________ TestGenerator.test_order_of_execution_generator_same_codeline _________ self = testdir = tmpdir = local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_order_of_execution_genera0') def test_order_of_execution_generator_same_codeline(self, testdir, tmpdir): o = testdir.makepyfile( """ from __future__ import print_function def test_generative_order_of_execution(): import py, pytest test_list = [] expected_list = list(range(6)) def list_append(item): test_list.append(item) def assert_order_of_execution(): print('expected order', expected_list) print('but got ', test_list) assert test_list == expected_list for i in expected_list: yield list_append, i yield assert_order_of_execution """ ) > reprec = testdir.inline_run(o) ../../../../pytest-3.10.1/testing/python/collect.py:373: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______ TestGenerator.test_order_of_execution_generator_different_codeline ______ self = testdir = def test_order_of_execution_generator_different_codeline(self, testdir): o = testdir.makepyfile( """ from __future__ import print_function def test_generative_tests_different_codeline(): import py, pytest test_list = [] expected_list = list(range(3)) def list_append_2(): test_list.append(2) def list_append_1(): test_list.append(1) def list_append_0(): test_list.append(0) def assert_order_of_execution(): print('expected order', expected_list) print('but got ', test_list) assert test_list == expected_list yield list_append_0 yield list_append_1 yield list_append_2 yield assert_order_of_execution """ ) > reprec = testdir.inline_run(o) ../../../../pytest-3.10.1/testing/python/collect.py:407: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ TestGenerator.test_setupstate_is_preserved_134 ________________ self = testdir = def test_setupstate_is_preserved_134(self, testdir): # yield-based tests are messy wrt to setupstate because # during collection they already invoke setup functions # and then again when they are run. For now, we want to make sure # that the old 1.3.4 behaviour is preserved such that all # yielded functions all share the same "self" instance that # has been used during collection. o = testdir.makepyfile( """ setuplist = [] class TestClass(object): def setup_method(self, func): #print "setup_method", self, func setuplist.append(self) self.init = 42 def teardown_method(self, func): self.init = None def test_func1(self): pass def test_func2(self): yield self.func2 yield self.func2 def func2(self): assert self.init def test_setuplist(): # once for test_func2 during collection # once for test_func1 during test run # once for test_func2 during test run #print setuplist assert len(setuplist) == 3, len(setuplist) assert setuplist[0] == setuplist[2], setuplist assert setuplist[1] != setuplist[2], setuplist """ ) > reprec = testdir.inline_run(o, "-v") ../../../../pytest-3.10.1/testing/python/collect.py:451: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestFunction.test_getmodulecollector _____________________ self = testdir = def test_getmodulecollector(self, testdir): > item = testdir.getitem("def test_func(): pass") ../../../../pytest-3.10.1/testing/python/collect.py:466: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestFunction.test_function_equality ______________________ self = testdir = tmpdir = local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_function_equality1') def test_function_equality(self, testdir, tmpdir): from _pytest.fixtures import FixtureManager > config = testdir.parseconfigure() ../../../../pytest-3.10.1/testing/python/collect.py:494: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________ TestFunction.test_issue197_parametrize_emptyset ________________ self = testdir = def test_issue197_parametrize_emptyset(self, testdir): testdir.makepyfile( """ import pytest @pytest.mark.parametrize('arg', []) def test_function(arg): pass """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/collect.py:520: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ TestFunction.test_single_tuple_unwraps_values _________________ self = testdir = def test_single_tuple_unwraps_values(self, testdir): testdir.makepyfile( """ import pytest @pytest.mark.parametrize(('arg',), [(1,)]) def test_function(arg): assert arg == 1 """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/collect.py:532: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________ TestFunction.test_issue213_parametrize_value_no_equal _____________ self = testdir = def test_issue213_parametrize_value_no_equal(self, testdir): testdir.makepyfile( """ import pytest class A(object): def __eq__(self, other): raise ValueError("not possible") @pytest.mark.parametrize('arg', [A()]) def test_function(arg): assert arg.__class__.__name__ == "A" """ ) > reprec = testdir.inline_run("--fulltrace") ../../../../pytest-3.10.1/testing/python/collect.py:547: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________ TestFunction.test_parametrize_with_non_hashable_values ____________ self = testdir = def test_parametrize_with_non_hashable_values(self, testdir): """Test parametrization with non-hashable values.""" testdir.makepyfile( """ archival_mapping = { '1.0': {'tag': '1.0'}, '1.2.2a1': {'tag': 'release-1.2.2a1'}, } import pytest @pytest.mark.parametrize('key value'.split(), archival_mapping.items()) def test_archival_to_version(key, value): assert key in archival_mapping assert value == archival_mapping[key] """ ) > rec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/collect.py:567: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______ TestFunction.test_parametrize_with_non_hashable_values_indirect ________ self = testdir = def test_parametrize_with_non_hashable_values_indirect(self, testdir): """Test parametrization with non-hashable values with indirect parametrization.""" testdir.makepyfile( """ archival_mapping = { '1.0': {'tag': '1.0'}, '1.2.2a1': {'tag': 'release-1.2.2a1'}, } import pytest @pytest.fixture def key(request): return request.param @pytest.fixture def value(request): return request.param @pytest.mark.parametrize('key value'.split(), archival_mapping.items(), indirect=True) def test_archival_to_version(key, value): assert key in archival_mapping assert value == archival_mapping[key] """ ) > rec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/collect.py:596: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________ TestFunction.test_parametrize_overrides_fixture ________________ self = testdir = def test_parametrize_overrides_fixture(self, testdir): """Test parametrization when parameter overrides existing fixture with same name.""" testdir.makepyfile( """ import pytest @pytest.fixture def value(): return 'value' @pytest.mark.parametrize('value', ['overridden']) def test_overridden_via_param(value): assert value == 'overridden' @pytest.mark.parametrize('somevalue', ['overridden']) def test_not_overridden(value, somevalue): assert value == 'value' assert somevalue == 'overridden' @pytest.mark.parametrize('other,value', [('foo', 'overridden')]) def test_overridden_via_multiparam(other, value): assert other == 'foo' assert value == 'overridden' """ ) > rec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/collect.py:625: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________ TestFunction.test_parametrize_overrides_parametrized_fixture _________ self = testdir = def test_parametrize_overrides_parametrized_fixture(self, testdir): """Test parametrization when parameter overrides existing parametrized fixture with same name.""" testdir.makepyfile( """ import pytest @pytest.fixture(params=[1, 2]) def value(request): return request.param @pytest.mark.parametrize('value', ['overridden']) def test_overridden_via_param(value): assert value == 'overridden' """ ) > rec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/collect.py:644: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____ TestFunction.test_parametrize_overrides_indirect_dependency_fixture ______ self = testdir = def test_parametrize_overrides_indirect_dependency_fixture(self, testdir): """Test parametrization when parameter overrides a fixture that a test indirectly depends on""" testdir.makepyfile( """ import pytest fix3_instantiated = False @pytest.fixture def fix1(fix2): return fix2 + '1' @pytest.fixture def fix2(fix3): return fix3 + '2' @pytest.fixture def fix3(): global fix3_instantiated fix3_instantiated = True return '3' @pytest.mark.parametrize('fix2', ['2']) def test_it(fix1): assert fix1 == '21' assert not fix3_instantiated """ ) > rec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/collect.py:675: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestFunction.test_parametrize_with_mark ____________________ self = testdir = @pytest.mark.filterwarnings("ignore:Applying marks directly to parameters") def test_parametrize_with_mark(self, testdir): items = testdir.getitems( """ import pytest @pytest.mark.foo @pytest.mark.parametrize('arg', [ 1, pytest.mark.bar(pytest.mark.baz(2)) ]) def test_function(arg): pass > """ ) ../../../../pytest-3.10.1/testing/python/collect.py:690: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestFunction.test_function_equality_with_callspec _______________ self = testdir = tmpdir = local('/tmp/B.W9HcNz/BUILD/tmp/pytest-of-builder/pytest-1/test_function_equality_with_ca0') def test_function_equality_with_callspec(self, testdir, tmpdir): items = testdir.getitems( """ import pytest @pytest.mark.parametrize('arg', [1,2]) def test_function(arg): pass > """ ) ../../../../pytest-3.10.1/testing/python/collect.py:707: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________________ TestFunction.test_pyfunc_call _________________________ self = testdir = def test_pyfunc_call(self, testdir): > item = testdir.getitem("def test_func(): raise ValueError") ../../../../pytest-3.10.1/testing/python/collect.py:713: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ TestFunction.test_multiple_parametrize ____________________ self = testdir = def test_multiple_parametrize(self, testdir): modcol = testdir.getmodulecol( """ import pytest @pytest.mark.parametrize('x', [0, 1]) @pytest.mark.parametrize('y', [2, 3]) def test1(x, y): pass > """ ) ../../../../pytest-3.10.1/testing/python/collect.py:737: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________ TestFunction.test_issue751_multiple_parametrize_with_ids ___________ self = testdir = def test_issue751_multiple_parametrize_with_ids(self, testdir): modcol = testdir.getmodulecol( """ import pytest @pytest.mark.parametrize('x', [0], ids=['c']) @pytest.mark.parametrize('y', [0, 1], ids=['a', 'b']) class Test(object): def test1(self, x, y): pass def test2(self, x, y): pass > """ ) ../../../../pytest-3.10.1/testing/python/collect.py:756: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestFunction.test_parametrize_skipif _____________________ self = testdir = ignore_parametrized_marks_args = ('-W', 'ignore:Applying marks directly to parameters') def test_parametrize_skipif(self, testdir, ignore_parametrized_marks_args): testdir.makepyfile( """ import pytest m = pytest.mark.skipif('True') @pytest.mark.parametrize('x', [0, 1, m(2)]) def test_skip_if(x): assert x < 2 """ ) result = testdir.runpytest(*ignore_parametrized_marks_args) > result.stdout.fnmatch_lines("* 2 passed, 1 skipped in *") E Failed: nomatch: '* 2 passed, 1 skipped in *' E and: '' E remains unmatched: '* 2 passed, 1 skipped in *' ../../../../pytest-3.10.1/testing/python/collect.py:777: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ TestFunction.test_parametrize_skip ______________________ self = testdir = ignore_parametrized_marks_args = ('-W', 'ignore:Applying marks directly to parameters') def test_parametrize_skip(self, testdir, ignore_parametrized_marks_args): testdir.makepyfile( """ import pytest m = pytest.mark.skip('') @pytest.mark.parametrize('x', [0, 1, m(2)]) def test_skip(x): assert x < 2 """ ) result = testdir.runpytest(*ignore_parametrized_marks_args) > result.stdout.fnmatch_lines("* 2 passed, 1 skipped in *") E Failed: nomatch: '* 2 passed, 1 skipped in *' E and: '' E remains unmatched: '* 2 passed, 1 skipped in *' ../../../../pytest-3.10.1/testing/python/collect.py:792: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestFunction.test_parametrize_skipif_no_skip _________________ self = testdir = ignore_parametrized_marks_args = ('-W', 'ignore:Applying marks directly to parameters') def test_parametrize_skipif_no_skip(self, testdir, ignore_parametrized_marks_args): testdir.makepyfile( """ import pytest m = pytest.mark.skipif('False') @pytest.mark.parametrize('x', [0, 1, m(2)]) def test_skipif_no_skip(x): assert x < 2 """ ) result = testdir.runpytest(*ignore_parametrized_marks_args) > result.stdout.fnmatch_lines("* 1 failed, 2 passed in *") E Failed: nomatch: '* 1 failed, 2 passed in *' E and: '' E remains unmatched: '* 1 failed, 2 passed in *' ../../../../pytest-3.10.1/testing/python/collect.py:807: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestFunction.test_parametrize_xfail ______________________ self = testdir = ignore_parametrized_marks_args = ('-W', 'ignore:Applying marks directly to parameters') def test_parametrize_xfail(self, testdir, ignore_parametrized_marks_args): testdir.makepyfile( """ import pytest m = pytest.mark.xfail('True') @pytest.mark.parametrize('x', [0, 1, m(2)]) def test_xfail(x): assert x < 2 """ ) result = testdir.runpytest(*ignore_parametrized_marks_args) > result.stdout.fnmatch_lines("* 2 passed, 1 xfailed in *") E Failed: nomatch: '* 2 passed, 1 xfailed in *' E and: '' E remains unmatched: '* 2 passed, 1 xfailed in *' ../../../../pytest-3.10.1/testing/python/collect.py:822: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestFunction.test_parametrize_passed _____________________ self = testdir = ignore_parametrized_marks_args = ('-W', 'ignore:Applying marks directly to parameters') def test_parametrize_passed(self, testdir, ignore_parametrized_marks_args): testdir.makepyfile( """ import pytest m = pytest.mark.xfail('True') @pytest.mark.parametrize('x', [0, 1, m(2)]) def test_xfail(x): pass """ ) result = testdir.runpytest(*ignore_parametrized_marks_args) > result.stdout.fnmatch_lines("* 2 passed, 1 xpassed in *") E Failed: nomatch: '* 2 passed, 1 xpassed in *' E and: '' E remains unmatched: '* 2 passed, 1 xpassed in *' ../../../../pytest-3.10.1/testing/python/collect.py:837: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ TestFunction.test_parametrize_xfail_passed __________________ self = testdir = ignore_parametrized_marks_args = ('-W', 'ignore:Applying marks directly to parameters') def test_parametrize_xfail_passed(self, testdir, ignore_parametrized_marks_args): testdir.makepyfile( """ import pytest m = pytest.mark.xfail('False') @pytest.mark.parametrize('x', [0, 1, m(2)]) def test_passed(x): pass """ ) result = testdir.runpytest(*ignore_parametrized_marks_args) > result.stdout.fnmatch_lines("* 3 passed in *") E Failed: nomatch: '* 3 passed in *' E and: '' E remains unmatched: '* 3 passed in *' ../../../../pytest-3.10.1/testing/python/collect.py:852: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ TestFunction.test_function_original_name ___________________ self = testdir = def test_function_original_name(self, testdir): items = testdir.getitems( """ import pytest @pytest.mark.parametrize('arg', [1,2]) def test_func(arg): pass > """ ) ../../../../pytest-3.10.1/testing/python/collect.py:861: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________________ TestSorting.test_check_equality ________________________ self = testdir = def test_check_equality(self, testdir): modcol = testdir.getmodulecol( """ def test_pass(): pass def test_fail(): assert 0 > """ ) ../../../../pytest-3.10.1/testing/python/collect.py:872: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestSorting.test_allow_sane_sorting_for_decorators ______________ self = testdir = def test_allow_sane_sorting_for_decorators(self, testdir): modcol = testdir.getmodulecol( """ def dec(f): g = lambda: f(2) g.place_as = f return g def test_b(y): pass test_b = dec(test_b) def test_a(y): pass test_a = dec(test_a) > """ ) ../../../../pytest-3.10.1/testing/python/collect.py:913: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________ TestConftestCustomization.test_pytest_pycollect_module ____________ self = testdir = def test_pytest_pycollect_module(self, testdir): testdir.makeconftest( """ import pytest class MyModule(pytest.Module): pass def pytest_pycollect_makemodule(path, parent): if path.basename == "test_xyz.py": return MyModule(path, parent) """ ) testdir.makepyfile("def test_some(): pass") testdir.makepyfile(test_xyz="def test_func(): pass") result = testdir.runpytest("--collect-only") > result.stdout.fnmatch_lines(["* firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____ TestConftestCustomization.test_customized_pymakemodule_issue205_subdir ____ self = testdir = def test_customized_pymakemodule_issue205_subdir(self, testdir): b = testdir.mkdir("a").mkdir("b") b.join("conftest.py").write( textwrap.dedent( """\ import pytest @pytest.hookimpl(hookwrapper=True) def pytest_pycollect_makemodule(): outcome = yield mod = outcome.get_result() mod.obj.hello = "world" """ ) ) b.join("test_module.py").write( textwrap.dedent( """\ def test_hello(): assert hello == "world" """ ) ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/collect.py:959: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________ TestConftestCustomization.test_customized_pymakeitem _____________ self = testdir = def test_customized_pymakeitem(self, testdir): b = testdir.mkdir("a").mkdir("b") b.join("conftest.py").write( textwrap.dedent( """\ import pytest @pytest.hookimpl(hookwrapper=True) def pytest_pycollect_makeitem(): outcome = yield if outcome.excinfo is None: result = outcome.get_result() if result: for func in result: func._some123 = "world" """ ) ) b.join("test_module.py").write( textwrap.dedent( """\ import pytest @pytest.fixture() def obj(request): return request.node._some123 def test_hello(obj): assert obj == "world" """ ) ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/collect.py:992: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________ TestConftestCustomization.test_pytest_pycollect_makeitem ___________ self = testdir = def test_pytest_pycollect_makeitem(self, testdir): testdir.makeconftest( """ import pytest class MyFunction(pytest.Function): pass def pytest_pycollect_makeitem(collector, name, obj): if name == "some": return MyFunction(name, collector) """ ) testdir.makepyfile("def some(): pass") result = testdir.runpytest("--collect-only") > result.stdout.fnmatch_lines(["*MyFunction*some*"]) E Failed: nomatch: '*MyFunction*some*' E and: '' E remains unmatched: '*MyFunction*some*' ../../../../pytest-3.10.1/testing/python/collect.py:1008: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________ TestConftestCustomization.test_makeitem_non_underscore ____________ self = testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c6106ec90> def test_makeitem_non_underscore(self, testdir, monkeypatch): > modcol = testdir.getmodulecol("def _hello(): pass") ../../../../pytest-3.10.1/testing/python/collect.py:1011: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ test_setup_only_available_in_subdir ______________________ testdir = def test_setup_only_available_in_subdir(testdir): sub1 = testdir.mkpydir("sub1") sub2 = testdir.mkpydir("sub2") sub1.join("conftest.py").write( textwrap.dedent( """\ import pytest def pytest_runtest_setup(item): assert item.fspath.purebasename == "test_in_sub1" def pytest_runtest_call(item): assert item.fspath.purebasename == "test_in_sub1" def pytest_runtest_teardown(item): assert item.fspath.purebasename == "test_in_sub1" """ ) ) sub2.join("conftest.py").write( textwrap.dedent( """\ import pytest def pytest_runtest_setup(item): assert item.fspath.purebasename == "test_in_sub2" def pytest_runtest_call(item): assert item.fspath.purebasename == "test_in_sub2" def pytest_runtest_teardown(item): assert item.fspath.purebasename == "test_in_sub2" """ ) ) sub1.join("test_in_sub1.py").write("def test_1(): pass") sub2.join("test_in_sub2.py").write("def test_2(): pass") result = testdir.runpytest("-v", "-s") > result.assert_outcomes(passed=2) ../../../../pytest-3.10.1/testing/python/collect.py:1085: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c612c4110> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ test_modulecol_roundtrip ___________________________ testdir = def test_modulecol_roundtrip(testdir): > modcol = testdir.getmodulecol("pass", withinit=False) ../../../../pytest-3.10.1/testing/python/collect.py:1089: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________ TestTracebackCutting.test_traceback_argsetup _________________ self = testdir = def test_traceback_argsetup(self, testdir): testdir.makeconftest( """ import pytest @pytest.fixture def hello(request): raise ValueError("xyz") """ ) p = testdir.makepyfile("def test(hello): pass") result = testdir.runpytest(p) assert result.ret != 0 out = result.stdout.str() > assert "xyz" in out E AssertionError: assert 'xyz' in '' ../../../../pytest-3.10.1/testing/python/collect.py:1115: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________ TestTracebackCutting.test_traceback_error_during_import ____________ self = testdir = def test_traceback_error_during_import(self, testdir): testdir.makepyfile( """ x = 1 x = 2 x = 17 asd """ ) result = testdir.runpytest() assert result.ret != 0 out = result.stdout.str() assert "x = 1" not in out assert "x = 2" not in out > result.stdout.fnmatch_lines([" *asd*", "E*NameError*"]) E Failed: nomatch: ' *asd*' E and: '' E remains unmatched: ' *asd*' ../../../../pytest-3.10.1/testing/python/collect.py:1140: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __ TestTracebackCutting.test_traceback_filter_error_during_fixture_collection __ self = testdir = def test_traceback_filter_error_during_fixture_collection(self, testdir): """integration test for issue #995. """ testdir.makepyfile( """ import pytest def fail_me(func): ns = {} exec('def w(): raise ValueError("fail me")', ns) return ns['w'] @pytest.fixture(scope='class') @fail_me def fail_fixture(): pass def test_failing_fixture(fail_fixture): pass """ ) result = testdir.runpytest() assert result.ret != 0 out = result.stdout.str() assert "INTERNALERROR>" not in out > result.stdout.fnmatch_lines(["*ValueError: fail me*", "* 1 error in *"]) E Failed: nomatch: '*ValueError: fail me*' E and: '' E remains unmatched: '*ValueError: fail me*' ../../../../pytest-3.10.1/testing/python/collect.py:1172: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ TestReportInfo.test_itemreport_reportinfo ___________________ self = testdir = linecomp = <_pytest.pytester.LineComp object at 0x7f5c612299d0> def test_itemreport_reportinfo(self, testdir, linecomp): testdir.makeconftest( """ import pytest class MyFunction(pytest.Function): def reportinfo(self): return "ABCDE", 42, "custom" def pytest_pycollect_makeitem(collector, name, obj): if name == "test_func": return MyFunction(name, parent=collector) """ ) > item = testdir.getitem("def test_func(): pass") ../../../../pytest-3.10.1/testing/python/collect.py:1236: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestReportInfo.test_func_reportinfo ______________________ self = testdir = def test_func_reportinfo(self, testdir): > item = testdir.getitem("def test_func(): pass") ../../../../pytest-3.10.1/testing/python/collect.py:1241: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestReportInfo.test_class_reportinfo _____________________ self = testdir = def test_class_reportinfo(self, testdir): modcol = testdir.getmodulecol( """ # lineno 0 class TestClass(object): def test_hello(self): pass > """ ) ../../../../pytest-3.10.1/testing/python/collect.py:1253: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestReportInfo.test_generator_reportinfo ___________________ self = testdir = @pytest.mark.filterwarnings( "ignore:usage of Generator.Function is deprecated, please use pytest.Function instead" ) def test_generator_reportinfo(self, testdir): modcol = testdir.getmodulecol( """ # lineno 0 def test_gen(): def check(x): assert x yield check, 3 > """ ) ../../../../pytest-3.10.1/testing/python/collect.py:1272: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestReportInfo.test_reportinfo_with_nasty_getattr _______________ self = testdir = def test_reportinfo_with_nasty_getattr(self, testdir): # https://github.com/pytest-dev/pytest/issues/1204 modcol = testdir.getmodulecol( """ # lineno 0 class TestClass(object): def __getattr__(self, name): return "this is not an int" def test_foo(self): pass > """ ) ../../../../pytest-3.10.1/testing/python/collect.py:1308: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________________ test_customized_python_discovery _______________________ testdir = def test_customized_python_discovery(testdir): testdir.makeini( """ [pytest] python_files=check_*.py python_classes=Check python_functions=check """ ) p = testdir.makepyfile( """ def check_simple(): pass class CheckMyApp(object): def check_meth(self): pass """ ) p2 = p.new(basename=p.basename.replace("test", "check")) p.move(p2) result = testdir.runpytest("--collect-only", "-s") result.stdout.fnmatch_lines( > ["*check_customized*", "*check_simple*", "*CheckMyApp*", "*check_meth*"] ) E Failed: nomatch: '*check_customized*' E and: '' E remains unmatched: '*check_customized*' ../../../../pytest-3.10.1/testing/python/collect.py:1337: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ test_customized_python_discovery_functions __________________ testdir = def test_customized_python_discovery_functions(testdir): testdir.makeini( """ [pytest] python_functions=_test """ ) testdir.makepyfile( """ def _test_underscore(): pass """ ) result = testdir.runpytest("--collect-only", "-s") > result.stdout.fnmatch_lines(["*_test_underscore*"]) E Failed: nomatch: '*_test_underscore*' E and: '' E remains unmatched: '*_test_underscore*' ../../../../pytest-3.10.1/testing/python/collect.py:1359: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________ test_collector_attributes ___________________________ testdir = def test_collector_attributes(testdir): testdir.makeconftest( """ import pytest def pytest_pycollect_makeitem(collector): assert collector.Function == pytest.Function assert collector.Class == pytest.Class assert collector.Instance == pytest.Instance assert collector.Module == pytest.Module """ ) testdir.makepyfile( """ def test_hello(): pass """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/python/collect.py:1384: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ test_customize_through_attributes _______________________ testdir = def test_customize_through_attributes(testdir): testdir.makeconftest( """ import pytest class MyFunction(pytest.Function): pass class MyInstance(pytest.Instance): Function = MyFunction class MyClass(pytest.Class): Instance = MyInstance def pytest_pycollect_makeitem(collector, name, obj): if name.startswith("MyTestClass"): return MyClass(name, parent=collector) """ ) testdir.makepyfile( """ class MyTestClass(object): def test_hello(self): pass """ ) result = testdir.runpytest("--collect-only") result.stdout.fnmatch_lines( > ["*MyClass*", "*MyInstance*", "*MyFunction*test_hello*"] ) E Failed: nomatch: '*MyClass*' E and: '' E remains unmatched: '*MyClass*' ../../../../pytest-3.10.1/testing/python/collect.py:1412: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________________ test_unorderable_types ____________________________ testdir = def test_unorderable_types(testdir): testdir.makepyfile( """ class TestJoinEmpty(object): pass def make_test(): class Test(object): pass Test.__name__ = "TestFoo" return Test TestFoo = make_test() """ ) result = testdir.runpytest() assert "TypeError" not in result.stdout.str() > assert result.ret == EXIT_NOTESTSCOLLECTED E assert 3 == 5 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c61160cd0>.ret ../../../../pytest-3.10.1/testing/python/collect.py:1432: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________ test_collect_functools_partial ________________________ testdir = def test_collect_functools_partial(testdir): """ Test that collection of functools.partial object works, and arguments to the wrapped functions are dealt correctly (see #811). """ testdir.makepyfile( """ import functools import pytest @pytest.fixture def fix1(): return 'fix1' @pytest.fixture def fix2(): return 'fix2' def check1(i, fix1): assert i == 2 assert fix1 == 'fix1' def check2(fix1, i): assert i == 2 assert fix1 == 'fix1' def check3(fix1, i, fix2): assert i == 2 assert fix1 == 'fix1' assert fix2 == 'fix2' test_ok_1 = functools.partial(check1, i=2) test_ok_2 = functools.partial(check1, i=2, fix1='fix1') test_ok_3 = functools.partial(check1, 2) test_ok_4 = functools.partial(check2, i=2) test_ok_5 = functools.partial(check3, i=2) test_ok_6 = functools.partial(check3, i=2, fix1='fix1') test_fail_1 = functools.partial(check2, 2) test_fail_2 = functools.partial(check3, 2) """ ) > result = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/collect.py:1477: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ test_class_injection_does_not_break_collection ________________ testdir = def test_class_injection_does_not_break_collection(testdir): """Tests whether injection during collection time will terminate testing. In this case the error should not occur if the TestClass itself is modified during collection time, and the original method list is still used for collection. """ testdir.makeconftest( """ from test_inject import TestClass def pytest_generate_tests(metafunc): TestClass.changed_var = {} """ ) testdir.makepyfile( test_inject=''' class TestClass(object): def test_injection(self): """Test being parametrized.""" pass ''' ) result = testdir.runpytest() assert ( "RuntimeError: dictionary changed size during iteration" not in result.stdout.str() ) > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/python/collect.py:1537: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ test_syntax_error_with_non_ascii_chars ____________________ testdir = def test_syntax_error_with_non_ascii_chars(testdir): """Fix decoding issue while formatting SyntaxErrors during collection (#578) """ testdir.makepyfile( u""" # -*- coding: UTF-8 -*- ☃ """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*ERROR collecting*", "*SyntaxError*", "*1 error in*"]) E Failed: nomatch: '*ERROR collecting*' E and: '' E remains unmatched: '*ERROR collecting*' ../../../../pytest-3.10.1/testing/python/collect.py:1551: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________________ test_skip_duplicates_by_default ________________________ testdir = def test_skip_duplicates_by_default(testdir): """Test for issue https://github.com/pytest-dev/pytest/issues/1609 (#1609) Ignore duplicate directories. """ a = testdir.mkdir("a") fh = a.join("test_a.py") fh.write( textwrap.dedent( """\ import pytest def test_real(): pass """ ) ) result = testdir.runpytest(a.strpath, a.strpath) > result.stdout.fnmatch_lines(["*collected 1 item*"]) E Failed: nomatch: '*collected 1 item*' E and: '' E remains unmatched: '*collected 1 item*' ../../../../pytest-3.10.1/testing/python/collect.py:1571: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________________ test_keep_duplicates _____________________________ testdir = def test_keep_duplicates(testdir): """Test for issue https://github.com/pytest-dev/pytest/issues/1609 (#1609) Use --keep-duplicates to collect tests from duplicate directories. """ a = testdir.mkdir("a") fh = a.join("test_a.py") fh.write( textwrap.dedent( """\ import pytest def test_real(): pass """ ) ) result = testdir.runpytest("--keep-duplicates", a.strpath, a.strpath) > result.stdout.fnmatch_lines(["*collected 2 item*"]) E Failed: nomatch: '*collected 2 item*' E and: '' E remains unmatched: '*collected 2 item*' ../../../../pytest-3.10.1/testing/python/collect.py:1591: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ test_package_collection_infinite_recursion __________________ testdir = def test_package_collection_infinite_recursion(testdir): testdir.copy_example("collect/package_infinite_recursion") result = testdir.runpytest() > result.stdout.fnmatch_lines("*1 passed*") E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/python/collect.py:1597: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ test_package_collection_init_given_as_argument ________________ testdir = def test_package_collection_init_given_as_argument(testdir): """Regression test for #3749""" p = testdir.copy_example("collect/package_init_given_as_arg") result = testdir.runpytest(p / "pkg" / "__init__.py") > result.stdout.fnmatch_lines("*1 passed*") E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/python/collect.py:1604: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________ test_package_with_modules ___________________________ testdir = def test_package_with_modules(testdir): """ . └── root ├── __init__.py ├── sub1 │ ├── __init__.py │ └── sub1_1 │ ├── __init__.py │ └── test_in_sub1.py └── sub2 └── test └── test_in_sub2.py """ root = testdir.mkpydir("root") sub1 = root.mkdir("sub1") sub1.ensure("__init__.py") sub1_test = sub1.mkdir("sub1_1") sub1_test.ensure("__init__.py") sub2 = root.mkdir("sub2") sub2_test = sub2.mkdir("sub2") sub1_test.join("test_in_sub1.py").write("def test_1(): pass") sub2_test.join("test_in_sub2.py").write("def test_2(): pass") # Execute from . result = testdir.runpytest("-v", "-s") > result.assert_outcomes(passed=2) ../../../../pytest-3.10.1/testing/python/collect.py:1635: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c617534d0> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________________ test_package_ordering _____________________________ testdir = def test_package_ordering(testdir): """ . └── root ├── Test_root.py ├── __init__.py ├── sub1 │ ├── Test_sub1.py │ └── __init__.py └── sub2 └── test └── test_sub2.py """ testdir.makeini( """ [pytest] python_files=*.py """ ) root = testdir.mkpydir("root") sub1 = root.mkdir("sub1") sub1.ensure("__init__.py") sub2 = root.mkdir("sub2") sub2_test = sub2.mkdir("sub2") root.join("Test_root.py").write("def test_1(): pass") sub1.join("Test_sub1.py").write("def test_2(): pass") sub2_test.join("test_sub2.py").write("def test_3(): pass") # Execute from . result = testdir.runpytest("-v", "-s") > result.assert_outcomes(passed=3) ../../../../pytest-3.10.1/testing/python/collect.py:1679: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c64dff290> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ TestFillFixtures.test_funcarg_lookupfails ___________________ self = testdir = def test_funcarg_lookupfails(self, testdir): testdir.copy_example() result = testdir.runpytest() # "--collect-only") assert result.ret != 0 result.stdout.fnmatch_lines( """ *def test_func(some)* *fixture*some*not found* *xyzsomething* > """ ) E Failed: nomatch: '*def test_func(some)*' E and: '' E remains unmatched: '*def test_func(some)*' ../../../../pytest-3.10.1/testing/python/fixture.py:61: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________ TestFillFixtures.test_detect_recursive_dependency_error ____________ self = testdir = def test_detect_recursive_dependency_error(self, testdir): testdir.copy_example() result = testdir.runpytest() result.stdout.fnmatch_lines( > ["*recursive dependency involving fixture 'fix1' detected*"] ) E Failed: nomatch: "*recursive dependency involving fixture 'fix1' detected*" E and: '' E remains unmatched: "*recursive dependency involving fixture 'fix1' detected*" ../../../../pytest-3.10.1/testing/python/fixture.py:68: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestFillFixtures.test_funcarg_basic ______________________ self = testdir = def test_funcarg_basic(self, testdir): testdir.copy_example() > item = testdir.getitem(Path("test_funcarg_basic.py")) ../../../../pytest-3.10.1/testing/python/fixture.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________ TestFillFixtures.test_funcarg_lookup_modulelevel _______________ self = testdir = def test_funcarg_lookup_modulelevel(self, testdir): testdir.copy_example() > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:82: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________ TestFillFixtures.test_funcarg_lookup_classlevel ________________ self = testdir = def test_funcarg_lookup_classlevel(self, testdir): p = testdir.copy_example() result = testdir.runpytest(p) > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/python/fixture.py:88: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______ TestFillFixtures.test_conftest_funcargs_only_available_in_subdir _______ self = testdir = def test_conftest_funcargs_only_available_in_subdir(self, testdir): testdir.copy_example() result = testdir.runpytest("-v") > result.assert_outcomes(passed=2) ../../../../pytest-3.10.1/testing/python/fixture.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c61f8ee10> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestFillFixtures.test_extend_fixture_module_class _______________ self = testdir = def test_extend_fixture_module_class(self, testdir): testfile = testdir.copy_example() result = testdir.runpytest() > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/python/fixture.py:98: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestFillFixtures.test_extend_fixture_conftest_module _____________ self = testdir = def test_extend_fixture_conftest_module(self, testdir): p = testdir.copy_example() result = testdir.runpytest() > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/python/fixture.py:105: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________ TestFillFixtures.test_extend_fixture_conftest_conftest ____________ self = testdir = def test_extend_fixture_conftest_conftest(self, testdir): p = testdir.copy_example() result = testdir.runpytest() > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/python/fixture.py:112: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestFillFixtures.test_extend_fixture_conftest_plugin _____________ self = testdir = def test_extend_fixture_conftest_plugin(self, testdir): testdir.makepyfile( testplugin=""" import pytest @pytest.fixture def foo(): return 7 """ ) testdir.syspathinsert() testdir.makeconftest( """ import pytest pytest_plugins = 'testplugin' @pytest.fixture def foo(foo): return foo + 7 """ ) testdir.makepyfile( """ def test_foo(foo): assert foo == 14 """ ) result = testdir.runpytest("-s") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c612392d0>.ret ../../../../pytest-3.10.1/testing/python/fixture.py:145: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestFillFixtures.test_extend_fixture_plugin_plugin ______________ self = testdir = def test_extend_fixture_plugin_plugin(self, testdir): # Two plugins should extend each order in loading order testdir.makepyfile( testplugin0=""" import pytest @pytest.fixture def foo(): return 7 """ ) testdir.makepyfile( testplugin1=""" import pytest @pytest.fixture def foo(foo): return foo + 7 """ ) testdir.syspathinsert() testdir.makepyfile( """ pytest_plugins = ['testplugin0', 'testplugin1'] def test_foo(foo): assert foo == 14 """ ) result = testdir.runpytest() > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c61159fd0>.ret ../../../../pytest-3.10.1/testing/python/fixture.py:177: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____ TestFillFixtures.test_override_parametrized_fixture_conftest_module ______ self = testdir = def test_override_parametrized_fixture_conftest_module(self, testdir): """Test override of the parametrized fixture with non-parametrized one on the test module level.""" testdir.makeconftest( """ import pytest @pytest.fixture(params=[1, 2, 3]) def spam(request): return request.param """ ) testfile = testdir.makepyfile( """ import pytest @pytest.fixture def spam(): return 'spam' def test_spam(spam): assert spam == 'spam' """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/python/fixture.py:203: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____ TestFillFixtures.test_override_parametrized_fixture_conftest_conftest _____ self = testdir = def test_override_parametrized_fixture_conftest_conftest(self, testdir): """Test override of the parametrized fixture with non-parametrized one on the conftest level.""" testdir.makeconftest( """ import pytest @pytest.fixture(params=[1, 2, 3]) def spam(request): return request.param """ ) subdir = testdir.mkpydir("subdir") subdir.join("conftest.py").write( textwrap.dedent( """\ import pytest @pytest.fixture def spam(): return 'spam' """ ) ) testfile = subdir.join("test_spam.py") testfile.write( textwrap.dedent( """\ def test_spam(spam): assert spam == "spam" """ ) ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/python/fixture.py:240: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___ TestFillFixtures.test_override_non_parametrized_fixture_conftest_module ____ self = testdir = def test_override_non_parametrized_fixture_conftest_module(self, testdir): """Test override of the non-parametrized fixture with parametrized one on the test module level.""" testdir.makeconftest( """ import pytest @pytest.fixture def spam(): return 'spam' """ ) testfile = testdir.makepyfile( """ import pytest @pytest.fixture(params=[1, 2, 3]) def spam(request): return request.param params = {'spam': 1} def test_spam(spam): assert spam == params['spam'] params['spam'] += 1 """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*3 passed*"]) E Failed: nomatch: '*3 passed*' E and: '' E remains unmatched: '*3 passed*' ../../../../pytest-3.10.1/testing/python/fixture.py:271: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __ TestFillFixtures.test_override_non_parametrized_fixture_conftest_conftest ___ self = testdir = def test_override_non_parametrized_fixture_conftest_conftest(self, testdir): """Test override of the non-parametrized fixture with parametrized one on the conftest level.""" testdir.makeconftest( """ import pytest @pytest.fixture def spam(): return 'spam' """ ) subdir = testdir.mkpydir("subdir") subdir.join("conftest.py").write( textwrap.dedent( """\ import pytest @pytest.fixture(params=[1, 2, 3]) def spam(request): return request.param """ ) ) testfile = subdir.join("test_spam.py") testfile.write( textwrap.dedent( """\ params = {'spam': 1} def test_spam(spam): assert spam == params['spam'] params['spam'] += 1 """ ) ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*3 passed*"]) E Failed: nomatch: '*3 passed*' E and: '' E remains unmatched: '*3 passed*' ../../../../pytest-3.10.1/testing/python/fixture.py:311: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestFillFixtures.test_override_autouse_fixture_with_parametrized_fixture_conftest_conftest self = testdir = def test_override_autouse_fixture_with_parametrized_fixture_conftest_conftest( self, testdir ): """Test override of the autouse fixture with parametrized one on the conftest level. This test covers the issue explained in issue 1601 """ testdir.makeconftest( """ import pytest @pytest.fixture(autouse=True) def spam(): return 'spam' """ ) subdir = testdir.mkpydir("subdir") subdir.join("conftest.py").write( textwrap.dedent( """\ import pytest @pytest.fixture(params=[1, 2, 3]) def spam(request): return request.param """ ) ) testfile = subdir.join("test_spam.py") testfile.write( textwrap.dedent( """\ params = {'spam': 1} def test_spam(spam): assert spam == params['spam'] params['spam'] += 1 """ ) ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*3 passed*"]) E Failed: nomatch: '*3 passed*' E and: '' E remains unmatched: '*3 passed*' ../../../../pytest-3.10.1/testing/python/fixture.py:355: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestFillFixtures.test_autouse_fixture_plugin _________________ self = testdir = def test_autouse_fixture_plugin(self, testdir): # A fixture from a plugin has no baseid set, which screwed up # the autouse fixture handling. testdir.makepyfile( testplugin=""" import pytest @pytest.fixture(autouse=True) def foo(request): request.function.foo = 7 """ ) testdir.syspathinsert() testdir.makepyfile( """ pytest_plugins = 'testplugin' def test_foo(request): assert request.function.foo == 7 """ ) result = testdir.runpytest() > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c60d98c90>.ret ../../../../pytest-3.10.1/testing/python/fixture.py:381: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ TestFillFixtures.test_funcarg_lookup_error __________________ self = testdir = def test_funcarg_lookup_error(self, testdir): testdir.makeconftest( """ import pytest @pytest.fixture def a_fixture(): pass @pytest.fixture def b_fixture(): pass @pytest.fixture def c_fixture(): pass @pytest.fixture def d_fixture(): pass """ ) testdir.makepyfile( """ def test_lookup_error(unknown): pass """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ "*ERROR at setup of test_lookup_error*", " def test_lookup_error(unknown):*", "E fixture 'unknown' not found", "> available fixtures:*a_fixture,*b_fixture,*c_fixture,*d_fixture*monkeypatch,*", # sorted "> use 'py*test --fixtures *' for help on them.", > "*1 error*", ] ) E Failed: nomatch: '*ERROR at setup of test_lookup_error*' E and: '' E remains unmatched: '*ERROR at setup of test_lookup_error*' ../../../../pytest-3.10.1/testing/python/fixture.py:415: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ TestFillFixtures.test_fixture_excinfo_leak __________________ self = testdir = def test_fixture_excinfo_leak(self, testdir): # on python2 sys.excinfo would leak into fixture executions testdir.makepyfile( """ import sys import traceback import pytest @pytest.fixture def leak(): if sys.exc_info()[0]: # python3 bug :) traceback.print_exc() #fails assert sys.exc_info() == (None, None, None) def test_leak(leak): if sys.exc_info()[0]: # python3 bug :) traceback.print_exc() assert sys.exc_info() == (None, None, None) """ ) result = testdir.runpytest() > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63cc97d0>.ret ../../../../pytest-3.10.1/testing/python/fixture.py:442: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ TestRequestBasic.test_request_attributes ___________________ self = testdir = def test_request_attributes(self, testdir): item = testdir.getitem( """ import pytest @pytest.fixture def something(request): pass def test_func(something): pass > """ ) ../../../../pytest-3.10.1/testing/python/fixture.py:454: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________ TestRequestBasic.test_request_attributes_method ________________ self = testdir = def test_request_attributes_method(self, testdir): item, = testdir.getitems( """ import pytest class TestB(object): @pytest.fixture def something(self, request): return 1 def test_func(self, something): pass > """ ) ../../../../pytest-3.10.1/testing/python/fixture.py:476: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________ TestRequestBasic.test_request_contains_funcarg_arg2fixturedefs ________ self = testdir = def test_request_contains_funcarg_arg2fixturedefs(self, testdir): modcol = testdir.getmodulecol( """ import pytest @pytest.fixture def something(request): pass class TestClass(object): def test_method(self, something): pass > """ ) ../../../../pytest-3.10.1/testing/python/fixture.py:492: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________ TestRequestBasic.test_getfixturevalue_recursive ________________ self = testdir = def test_getfixturevalue_recursive(self, testdir): testdir.makeconftest( """ import pytest @pytest.fixture def something(request): return 1 """ ) testdir.makepyfile( """ import pytest @pytest.fixture def something(request): return request.getfixturevalue("something") + 1 def test_func(something): assert something == 2 """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:568: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________ TestRequestBasic.test_getfixturevalue[getfixturevalue] ____________ self = testdir = getfixmethod = 'getfixturevalue' @pytest.mark.parametrize("getfixmethod", ("getfixturevalue", "getfuncargvalue")) def test_getfixturevalue(self, testdir, getfixmethod): item = testdir.getitem( """ import pytest values = [2] @pytest.fixture def something(request): return 1 @pytest.fixture def other(request): return values.pop() def test_func(something): pass > """ ) ../../../../pytest-3.10.1/testing/python/fixture.py:583: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________ TestRequestBasic.test_getfixturevalue[getfuncargvalue] ____________ self = testdir = getfixmethod = 'getfuncargvalue' @pytest.mark.parametrize("getfixmethod", ("getfixturevalue", "getfuncargvalue")) def test_getfixturevalue(self, testdir, getfixmethod): item = testdir.getitem( """ import pytest values = [2] @pytest.fixture def something(request): return 1 @pytest.fixture def other(request): return values.pop() def test_func(something): pass > """ ) ../../../../pytest-3.10.1/testing/python/fixture.py:583: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ TestRequestBasic.test_request_addfinalizer __________________ self = testdir = def test_request_addfinalizer(self, testdir): item = testdir.getitem( """ import pytest teardownlist = [] @pytest.fixture def something(request): request.addfinalizer(lambda: teardownlist.append(1)) def test_func(something): pass > """ ) ../../../../pytest-3.10.1/testing/python/fixture.py:624: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________ TestRequestBasic.test_request_addfinalizer_failing_setup ___________ self = testdir = def test_request_addfinalizer_failing_setup(self, testdir): testdir.makepyfile( """ import pytest values = [1] @pytest.fixture def myfix(request): request.addfinalizer(values.pop) assert 0 def test_fix(myfix): pass def test_finalizer_ran(): assert not values """ ) > reprec = testdir.inline_run("-s") ../../../../pytest-3.10.1/testing/python/fixture.py:670: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______ TestRequestBasic.test_request_addfinalizer_failing_setup_module ________ self = testdir = def test_request_addfinalizer_failing_setup_module(self, testdir): testdir.makepyfile( """ import pytest values = [1, 2] @pytest.fixture(scope="module") def myfix(request): request.addfinalizer(values.pop) request.addfinalizer(values.pop) assert 0 def test_fix(myfix): pass """ ) > reprec = testdir.inline_run("-s") ../../../../pytest-3.10.1/testing/python/fixture.py:687: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______ TestRequestBasic.test_request_addfinalizer_partial_setup_failure _______ self = testdir = def test_request_addfinalizer_partial_setup_failure(self, testdir): p = testdir.makepyfile( """ import pytest values = [] @pytest.fixture def something(request): request.addfinalizer(lambda: values.append(None)) def test_func(something, missingarg): pass def test_second(): assert len(values) == 1 """ ) result = testdir.runpytest(p) result.stdout.fnmatch_lines( > ["*1 error*"] # XXX the whole module collection fails ) E Failed: nomatch: '*1 error*' E and: '' E remains unmatched: '*1 error*' ../../../../pytest-3.10.1/testing/python/fixture.py:707: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______ TestRequestBasic.test_request_subrequest_addfinalizer_exceptions _______ self = testdir = def test_request_subrequest_addfinalizer_exceptions(self, testdir): """ Ensure exceptions raised during teardown by a finalizer are suppressed until all finalizers are called, re-raising the first exception (#2440) """ testdir.makepyfile( """ import pytest values = [] def _excepts(where): raise Exception('Error in %s fixture' % where) @pytest.fixture def subrequest(request): return request @pytest.fixture def something(subrequest): subrequest.addfinalizer(lambda: values.append(1)) subrequest.addfinalizer(lambda: values.append(2)) subrequest.addfinalizer(lambda: _excepts('something')) @pytest.fixture def excepts(subrequest): subrequest.addfinalizer(lambda: _excepts('excepts')) subrequest.addfinalizer(lambda: values.append(3)) def test_first(something, excepts): pass def test_second(): assert values == [3, 2, 1] """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( > ["*Exception: Error in excepts fixture", "* 2 passed, 1 error in *"] ) E Failed: nomatch: '*Exception: Error in excepts fixture' E and: '' E remains unmatched: '*Exception: Error in excepts fixture' ../../../../pytest-3.10.1/testing/python/fixture.py:741: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestRequestBasic.test_request_getmodulepath __________________ self = testdir = def test_request_getmodulepath(self, testdir): > modcol = testdir.getmodulecol("def test_somefunc(): pass") ../../../../pytest-3.10.1/testing/python/fixture.py:745: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ TestRequestBasic.test_request_fixturenames __________________ self = testdir = def test_request_fixturenames(self, testdir): testdir.makepyfile( """ import pytest from _pytest.pytester import get_public_names @pytest.fixture() def arg1(): pass @pytest.fixture() def farg(arg1): pass @pytest.fixture(autouse=True) def sarg(tmpdir): pass def test_function(request, farg): assert set(get_public_names(request.fixturenames)) == \ set(["tmpdir", "sarg", "arg1", "request", "farg", "tmpdir_factory"]) """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:770: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________ TestRequestBasic.test_request_fixturenames_dynamic_fixture __________ self = testdir = def test_request_fixturenames_dynamic_fixture(self, testdir): """Regression test for #3057""" testdir.copy_example("fixtures/test_getfixturevalue_dynamic.py") result = testdir.runpytest() > result.stdout.fnmatch_lines("*1 passed*") E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/python/fixture.py:777: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestRequestBasic.test_funcargnames_compatattr _________________ self = testdir = def test_funcargnames_compatattr(self, testdir): testdir.makepyfile( """ import pytest def pytest_generate_tests(metafunc): assert metafunc.funcargnames == metafunc.fixturenames @pytest.fixture def fn(request): assert request._pyfuncitem.funcargnames == \ request._pyfuncitem.fixturenames return request.funcargnames, request.fixturenames def test_hello(fn): assert fn[0] == fn[1] """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:795: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ TestRequestBasic.test_setupdecorator_and_xunit ________________ self = testdir = def test_setupdecorator_and_xunit(self, testdir): testdir.makepyfile( """ import pytest values = [] @pytest.fixture(scope='module', autouse=True) def setup_module(): values.append("module") @pytest.fixture(autouse=True) def setup_function(): values.append("function") def test_func(): pass class TestClass(object): @pytest.fixture(scope="class", autouse=True) def setup_class(self): values.append("class") @pytest.fixture(autouse=True) def setup_method(self): values.append("method") def test_method(self): pass def test_all(): assert values == ["module", "function", "class", "function", "method", "function"] """ ) > reprec = testdir.inline_run("-v") ../../../../pytest-3.10.1/testing/python/fixture.py:827: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________ TestRequestBasic.test_fixtures_sub_subdir_normalize_sep ____________ self = testdir = def test_fixtures_sub_subdir_normalize_sep(self, testdir): # this tests that normalization of nodeids takes place b = testdir.mkdir("tests").mkdir("unit") b.join("conftest.py").write( textwrap.dedent( """\ import pytest @pytest.fixture def arg1(): pass """ ) ) p = b.join("test_module.py") p.write("def test_func(arg1): pass") result = testdir.runpytest(p, "--fixtures") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c60deb090>.ret ../../../../pytest-3.10.1/testing/python/fixture.py:846: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestRequestBasic.test_show_fixtures_color_yes _________________ self = testdir = def test_show_fixtures_color_yes(self, testdir): testdir.makepyfile("def test_this(): assert 1") result = testdir.runpytest("--color=yes", "--fixtures") > assert "\x1b[32mtmpdir" in result.stdout.str() E AssertionError: assert '\x1b[32mtmpdir' in '' E + where '' = >() E + where > = <_pytest.pytester.LineMatcher object at 0x7f5c63e1e390>.str E + where <_pytest.pytester.LineMatcher object at 0x7f5c63e1e390> = <_pytest.pytester.RunResult object at 0x7f5c61240550>.stdout ../../../../pytest-3.10.1/testing/python/fixture.py:857: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestRequestBasic.test_newstyle_with_request __________________ self = testdir = def test_newstyle_with_request(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture() def arg(request): pass def test_1(arg): pass """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:870: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________ TestRequestBasic.test_setupcontext_no_param __________________ self = testdir = def test_setupcontext_no_param(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(params=[1,2]) def arg(request): return request.param @pytest.fixture(autouse=True) def mysetup(request, arg): assert not hasattr(request, "param") def test_1(arg): assert arg in (1,2) """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:888: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestRequestMarking.test_applymarker ______________________ self = testdir = def test_applymarker(self, testdir): item1, item2 = testdir.getitems( """ import pytest @pytest.fixture def something(request): pass class TestClass(object): def test_func1(self, something): pass def test_func2(self, something): pass > """ ) ../../../../pytest-3.10.1/testing/python/fixture.py:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ TestRequestMarking.test_accesskeywords ____________________ self = testdir = def test_accesskeywords(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture() def keywords(request): return request.keywords @pytest.mark.XYZ def test_function(keywords): assert keywords["XYZ"] assert "abc" not in keywords """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:930: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________ TestRequestMarking.test_accessmarker_dynamic _________________ self = testdir = def test_accessmarker_dynamic(self, testdir): testdir.makeconftest( """ import pytest @pytest.fixture() def keywords(request): return request.keywords @pytest.fixture(scope="class", autouse=True) def marking(request): request.applymarker(pytest.mark.XYZ("hello")) """ ) testdir.makepyfile( """ import pytest def test_fun1(keywords): assert keywords["XYZ"] is not None assert "abc" not in keywords def test_fun2(keywords): assert keywords["XYZ"] is not None assert "abc" not in keywords """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:957: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________ TestRequestCachedSetup.test_request_cachedsetup_defaultmodule _________ self = testdir = def test_request_cachedsetup_defaultmodule(self, testdir): reprec = testdir.inline_runsource( """ mysetup = ["hello",].pop import pytest @pytest.fixture def something(request): return request.cached_setup(mysetup, scope="module") def test_func1(something): assert something == "hello" class TestClass(object): def test_func1a(self, something): assert something == "hello" > """ ) ../../../../pytest-3.10.1/testing/python/fixture.py:978: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________ TestRequestCachedSetup.test_request_cachedsetup_class _____________ self = testdir = def test_request_cachedsetup_class(self, testdir): reprec = testdir.inline_runsource( """ mysetup = ["hello", "hello2", "hello3"].pop import pytest @pytest.fixture def something(request): return request.cached_setup(mysetup, scope="class") def test_func1(something): assert something == "hello3" def test_func2(something): assert something == "hello2" class TestClass(object): def test_func1a(self, something): assert something == "hello" def test_func2b(self, something): assert something == "hello" > """ ) ../../../../pytest-3.10.1/testing/python/fixture.py:1000: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:786: in inline_runsource return self.inline_run(*values) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________ TestRequestCachedSetup.test_request_cachedsetup_extrakey ___________ self = testdir = @pytest.mark.filterwarnings("ignore:cached_setup is deprecated") def test_request_cachedsetup_extrakey(self, testdir): > item1 = testdir.getitem("def test_func(): pass") ../../../../pytest-3.10.1/testing/python/fixture.py:1006: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________ TestRequestCachedSetup.test_request_cachedsetup_cache_deletion ________ self = testdir = @pytest.mark.filterwarnings("ignore:cached_setup is deprecated") def test_request_cachedsetup_cache_deletion(self, testdir): > item1 = testdir.getitem("def test_func(): pass") ../../../../pytest-3.10.1/testing/python/fixture.py:1024: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:972: in getitem items = self.getitems(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________ TestRequestCachedSetup.test_request_cached_setup_two_args ___________ self = testdir = def test_request_cached_setup_two_args(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture def arg1(request): return request.cached_setup(lambda: 42) @pytest.fixture def arg2(request): return request.cached_setup(lambda: 17) def test_two_different_setups(arg1, arg2): assert arg1 != arg2 """ ) result = testdir.runpytest("-v") > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/python/fixture.py:1061: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______ TestRequestCachedSetup.test_request_cached_setup_getfixturevalue _______ self = testdir = def test_request_cached_setup_getfixturevalue(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture def arg1(request): arg1 = request.getfixturevalue("arg2") return request.cached_setup(lambda: arg1 + 1) @pytest.fixture def arg2(request): return request.cached_setup(lambda: 10) def test_two_funcarg(arg1): assert arg1 == 11 """ ) result = testdir.runpytest("-v") > result.stdout.fnmatch_lines(["*1 passed*"]) E Failed: nomatch: '*1 passed*' E and: '' E remains unmatched: '*1 passed*' ../../../../pytest-3.10.1/testing/python/fixture.py:1080: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________ TestRequestCachedSetup.test_request_cached_setup_functional __________ self = testdir = def test_request_cached_setup_functional(self, testdir): testdir.makepyfile( test_0=""" import pytest values = [] @pytest.fixture def something(request): val = request.cached_setup(fsetup, fteardown) return val def fsetup(mycache=[1]): values.append(mycache.pop()) return values def fteardown(something): values.remove(something[0]) values.append(2) def test_list_once(something): assert something == [1] def test_list_twice(something): assert something == [1] """ ) testdir.makepyfile( test_1=""" import test_0 # should have run already def test_check_test0_has_teardown_correct(): assert test_0.values == [2] """ ) result = testdir.runpytest("-v") > result.stdout.fnmatch_lines(["*3 passed*"]) E Failed: nomatch: '*3 passed*' E and: '' E remains unmatched: '*3 passed*' ../../../../pytest-3.10.1/testing/python/fixture.py:1111: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________ TestRequestCachedSetup.test_issue117_sessionscopeteardown ___________ self = testdir = def test_issue117_sessionscopeteardown(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture def app(request): app = request.cached_setup( scope='session', setup=lambda: 0, teardown=lambda x: 3/x) return app def test_func(app): pass """ ) result = testdir.runpytest() assert result.ret != 0 > result.stdout.fnmatch_lines(["*3/x*", "*ZeroDivisionError*"]) E Failed: nomatch: '*3/x*' E and: '' E remains unmatched: '*3/x*' ../../../../pytest-3.10.1/testing/python/fixture.py:1131: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ TestFixtureUsages.test_noargfixturedec ____________________ self = testdir = def test_noargfixturedec(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture def arg1(): return 1 def test_func(arg1): assert arg1 == 1 """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:1147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestFixtureUsages.test_receives_funcargs ___________________ self = testdir = def test_receives_funcargs(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture() def arg1(): return 1 @pytest.fixture() def arg2(arg1): return arg1 + 1 def test_add(arg2): assert arg2 == 2 def test_all(arg1, arg2): assert arg1 == 1 assert arg2 == 2 """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:1169: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________ TestFixtureUsages.test_receives_funcargs_scope_mismatch ____________ self = testdir = def test_receives_funcargs_scope_mismatch(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope="function") def arg1(): return 1 @pytest.fixture(scope="module") def arg2(arg1): return arg1 + 1 def test_add(arg2): assert arg2 == 2 """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ "*ScopeMismatch*involved factories*", "* def arg2*", "* def arg1*", > "*1 error*", ] ) E Failed: nomatch: '*ScopeMismatch*involved factories*' E and: '' E remains unmatched: '*ScopeMismatch*involved factories*' ../../../../pytest-3.10.1/testing/python/fixture.py:1194: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______ TestFixtureUsages.test_receives_funcargs_scope_mismatch_issue660 _______ self = testdir = def test_receives_funcargs_scope_mismatch_issue660(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope="function") def arg1(): return 1 @pytest.fixture(scope="module") def arg2(arg1): return arg1 + 1 def test_add(arg1, arg2): assert arg2 == 2 """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( > ["*ScopeMismatch*involved factories*", "* def arg2*", "*1 error*"] ) E Failed: nomatch: '*ScopeMismatch*involved factories*' E and: '' E remains unmatched: '*ScopeMismatch*involved factories*' ../../../../pytest-3.10.1/testing/python/fixture.py:1216: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestFixtureUsages.test_invalid_scope _____________________ self = testdir = def test_invalid_scope(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope="functions") def badscope(): pass def test_nothing(badscope): pass """ ) result = testdir.runpytest_inprocess() result.stdout.fnmatch_lines( ( > "*Fixture 'badscope' from test_invalid_scope.py got an unexpected scope value 'functions'" ) ) E Failed: nomatch: "*Fixture 'badscope' from test_invalid_scope.py got an unexpected scope value 'functions'" E and: '' E remains unmatched: "*Fixture 'badscope' from test_invalid_scope.py got an unexpected scope value 'functions'" ../../../../pytest-3.10.1/testing/python/fixture.py:1234: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________ TestFixtureUsages.test_funcarg_parametrized_and_used_twice __________ self = testdir = def test_funcarg_parametrized_and_used_twice(self, testdir): testdir.makepyfile( """ import pytest values = [] @pytest.fixture(params=[1,2]) def arg1(request): values.append(1) return request.param @pytest.fixture() def arg2(arg1): return arg1 + 1 def test_add(arg1, arg2): assert arg2 == arg1 + 1 assert len(values) == arg1 """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*2 passed*"]) E Failed: nomatch: '*2 passed*' E and: '' E remains unmatched: '*2 passed*' ../../../../pytest-3.10.1/testing/python/fixture.py:1258: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___ TestFixtureUsages.test_factory_uses_unknown_funcarg_as_dependency_error ____ self = testdir = def test_factory_uses_unknown_funcarg_as_dependency_error(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture() def fail(missing): return @pytest.fixture() def call_fail(fail): return def test_missing(call_fail): pass """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( """ *pytest.fixture()* *def call_fail(fail)* *pytest.fixture()* *def fail* *fixture*'missing'*not found* > """ ) E Failed: nomatch: '*pytest.fixture()*' E and: '' E remains unmatched: '*pytest.fixture()*' ../../../../pytest-3.10.1/testing/python/fixture.py:1285: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________ TestFixtureUsages.test_factory_setup_as_classes_fails _____________ self = testdir = def test_factory_setup_as_classes_fails(self, testdir): testdir.makepyfile( """ import pytest class arg1(object): def __init__(self, request): self.x = 1 arg1 = pytest.fixture()(arg1) """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:1299: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________ TestFixtureUsages.test_request_can_be_overridden _______________ self = testdir = def test_request_can_be_overridden(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture() def request(request): request.a = 1 return request def test_request(request): assert request.a == 1 """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:1315: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ TestFixtureUsages.test_usefixtures_marker ___________________ self = testdir = def test_usefixtures_marker(self, testdir): testdir.makepyfile( """ import pytest values = [] @pytest.fixture(scope="class") def myfix(request): request.cls.hello = "world" values.append(1) class TestClass(object): def test_one(self): assert self.hello == "world" assert len(values) == 1 def test_two(self): assert self.hello == "world" assert len(values) == 1 pytest.mark.usefixtures("myfix")(TestClass) """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:1340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ TestFixtureUsages.test_usefixtures_ini ____________________ self = testdir = def test_usefixtures_ini(self, testdir): testdir.makeini( """ [pytest] usefixtures = myfix """ ) testdir.makeconftest( """ import pytest @pytest.fixture(scope="class") def myfix(request): request.cls.hello = "world" """ ) testdir.makepyfile( """ class TestClass(object): def test_one(self): assert self.hello == "world" def test_two(self): assert self.hello == "world" """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:1369: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________ TestFixtureUsages.test_usefixtures_seen_in_showmarkers ____________ self = testdir = def test_usefixtures_seen_in_showmarkers(self, testdir): result = testdir.runpytest("--markers") result.stdout.fnmatch_lines( """ *usefixtures(fixturename1*mark tests*fixtures* > """ ) E Failed: nomatch: '*usefixtures(fixturename1*mark tests*fixtures*' E and: '' E remains unmatched: '*usefixtures(fixturename1*mark tests*fixtures*' ../../../../pytest-3.10.1/testing/python/fixture.py:1377: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestFixtureUsages.test_request_instance_issue203 _______________ self = testdir = def test_request_instance_issue203(self, testdir): testdir.makepyfile( """ import pytest class TestClass(object): @pytest.fixture def setup1(self, request): assert self == request.instance self.arg1 = 1 def test_hello(self, setup1): assert self.arg1 == 1 """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:1394: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________ TestFixtureUsages.test_fixture_parametrized_with_iterator ___________ self = testdir = def test_fixture_parametrized_with_iterator(self, testdir): testdir.makepyfile( """ import pytest values = [] def f(): yield 1 yield 2 dec = pytest.fixture(scope="module", params=f()) @dec def arg(request): return request.param @dec def arg2(request): return request.param def test_1(arg): values.append(arg) def test_2(arg2): values.append(arg2*10) """ ) > reprec = testdir.inline_run("-v") ../../../../pytest-3.10.1/testing/python/fixture.py:1421: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __ TestFixtureManagerParseFactories.test_parsefactories_evil_objects_issue214 __ self = testdir = def test_parsefactories_evil_objects_issue214(self, testdir): testdir.makepyfile( """ class A(object): def __call__(self): pass def __getattr__(self, name): raise RuntimeError() a = A() def test_hello(): pass """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:1463: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________ TestFixtureManagerParseFactories.test_parsefactories_conftest _________ self = testdir = def test_parsefactories_conftest(self, testdir): testdir.makepyfile( """ def test_hello(item, fm): for name in ("fm", "hello", "item"): faclist = fm.getfixturedefs(name, item.nodeid) assert len(faclist) == 1 fac = faclist[0] assert fac.func.__name__ == name """ ) > reprec = testdir.inline_run("-s") ../../../../pytest-3.10.1/testing/python/fixture.py:1477: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning TestFixtureManagerParseFactories.test_parsefactories_conftest_and_module_and_class self = testdir = def test_parsefactories_conftest_and_module_and_class(self, testdir): testdir.makepyfile( """ import pytest import six @pytest.fixture def hello(request): return "module" class TestClass(object): @pytest.fixture def hello(self, request): return "class" def test_hello(self, item, fm): faclist = fm.getfixturedefs("hello", item.nodeid) print (faclist) assert len(faclist) == 3 assert faclist[0].func(item._request) == "conftest" assert faclist[1].func(item._request) == "module" assert faclist[2].func(item._request) == "class" """ ) > reprec = testdir.inline_run("-s") ../../../../pytest-3.10.1/testing/python/fixture.py:1503: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____ TestFixtureManagerParseFactories.test_parsefactories_relative_node_ids ____ self = testdir = def test_parsefactories_relative_node_ids(self, testdir): # example mostly taken from: # https://mail.python.org/pipermail/pytest-dev/2014-September/002617.html runner = testdir.mkdir("runner") package = testdir.mkdir("package") package.join("conftest.py").write( textwrap.dedent( """\ import pytest @pytest.fixture def one(): return 1 """ ) ) package.join("test_x.py").write( textwrap.dedent( """\ def test_x(one): assert one == 1 """ ) ) sub = package.mkdir("sub") sub.join("__init__.py").ensure() sub.join("conftest.py").write( textwrap.dedent( """\ import pytest @pytest.fixture def one(): return 2 """ ) ) sub.join("test_y.py").write( textwrap.dedent( """\ def test_x(one): assert one == 2 """ ) ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:1549: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________ TestFixtureManagerParseFactories.test_package_xunit_fixture __________ self = testdir = def test_package_xunit_fixture(self, testdir): testdir.makepyfile( __init__="""\ values = [] """ ) package = testdir.mkdir("package") package.join("__init__.py").write( textwrap.dedent( """\ from .. import values def setup_module(): values.append("package") def teardown_module(): values[:] = [] """ ) ) package.join("test_x.py").write( textwrap.dedent( """\ from .. import values def test_x(): assert values == ["package"] """ ) ) package = testdir.mkdir("package2") package.join("__init__.py").write( textwrap.dedent( """\ from .. import values def setup_module(): values.append("package2") def teardown_module(): values[:] = [] """ ) ) package.join("test_x.py").write( textwrap.dedent( """\ from .. import values def test_x(): assert values == ["package2"] """ ) ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:1603: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________ TestFixtureManagerParseFactories.test_package_fixture_complex _________ self = testdir = def test_package_fixture_complex(self, testdir): testdir.makepyfile( __init__="""\ values = [] """ ) testdir.syspathinsert(testdir.tmpdir.dirname) package = testdir.mkdir("package") package.join("__init__.py").write("") package.join("conftest.py").write( textwrap.dedent( """\ import pytest from .. import values @pytest.fixture(scope="package") def one(): values.append("package") yield values values.pop() @pytest.fixture(scope="package", autouse=True) def two(): values.append("package-auto") yield values values.pop() """ ) ) package.join("test_x.py").write( textwrap.dedent( """\ from .. import values def test_package_autouse(): assert values == ["package-auto"] def test_package(one): assert values == ["package-auto", "package"] """ ) ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:1644: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________ TestFixtureManagerParseFactories.test_collect_custom_items __________ self = testdir = def test_collect_custom_items(self, testdir): testdir.copy_example("fixtures/custom_item") result = testdir.runpytest("foo") > result.stdout.fnmatch_lines("*passed*") E Failed: nomatch: '*passed*' E and: '' E remains unmatched: '*passed*' ../../../../pytest-3.10.1/testing/python/fixture.py:1650: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestAutouseDiscovery.test_parsefactories_conftest _______________ self = testdir = def test_parsefactories_conftest(self, testdir): testdir.makepyfile( """ from _pytest.pytester import get_public_names def test_check_setup(item, fm): autousenames = fm._getautousenames(item.nodeid) assert len(get_public_names(autousenames)) == 2 assert "perfunction2" in autousenames assert "perfunction" in autousenames """ ) > reprec = testdir.inline_run("-s") ../../../../pytest-3.10.1/testing/python/fixture.py:1692: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________ TestAutouseDiscovery.test_two_classes_separated_autouse ____________ self = testdir = def test_two_classes_separated_autouse(self, testdir): testdir.makepyfile( """ import pytest class TestA(object): values = [] @pytest.fixture(autouse=True) def setup1(self): self.values.append(1) def test_setup1(self): assert self.values == [1] class TestB(object): values = [] @pytest.fixture(autouse=True) def setup2(self): self.values.append(1) def test_setup2(self): assert self.values == [1] """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:1715: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ TestAutouseDiscovery.test_setup_at_classlevel _________________ self = testdir = def test_setup_at_classlevel(self, testdir): testdir.makepyfile( """ import pytest class TestClass(object): @pytest.fixture(autouse=True) def permethod(self, request): request.instance.funcname = request.function.__name__ def test_method1(self): assert self.funcname == "test_method1" def test_method2(self): assert self.funcname == "test_method2" """ ) > reprec = testdir.inline_run("-s") ../../../../pytest-3.10.1/testing/python/fixture.py:1732: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ TestAutouseDiscovery.test_callables_nocode __________________ self = testdir = def test_callables_nocode(self, testdir): """ an imported mock.call would break setup/factory discovery due to it being callable and __code__ not being a code object """ testdir.makepyfile( """ class _call(tuple): def __call__(self, *k, **kw): pass def __getattr__(self, k): return self call = _call() """ ) > reprec = testdir.inline_run("-s") ../../../../pytest-3.10.1/testing/python/fixture.py:1779: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ TestAutouseDiscovery.test_autouse_in_conftests ________________ self = testdir = def test_autouse_in_conftests(self, testdir): a = testdir.mkdir("a") b = testdir.mkdir("a1") conftest = testdir.makeconftest( """ import pytest @pytest.fixture(autouse=True) def hello(): xxx """ ) conftest.move(a.join(conftest.basename)) a.join("test_something.py").write("def test_func(): pass") b.join("test_otherthing.py").write("def test_func(): pass") result = testdir.runpytest() result.stdout.fnmatch_lines( """ *1 passed*1 error* > """ ) E Failed: nomatch: '*1 passed*1 error*' E and: '' E remains unmatched: '*1 passed*1 error*' ../../../../pytest-3.10.1/testing/python/fixture.py:1800: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________ TestAutouseDiscovery.test_autouse_in_module_and_two_classes __________ self = testdir = def test_autouse_in_module_and_two_classes(self, testdir): testdir.makepyfile( """ import pytest values = [] @pytest.fixture(autouse=True) def append1(): values.append("module") def test_x(): assert values == ["module"] class TestA(object): @pytest.fixture(autouse=True) def append2(self): values.append("A") def test_hello(self): assert values == ["module", "module", "A"], values class TestA2(object): def test_world(self): assert values == ["module", "module", "A", "module"], values """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:1825: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________ TestAutouseManagement.test_autouse_conftest_mid_directory ___________ self = testdir = def test_autouse_conftest_mid_directory(self, testdir): pkgdir = testdir.mkpydir("xyz123") pkgdir.join("conftest.py").write( textwrap.dedent( """\ import pytest @pytest.fixture(autouse=True) def app(): import sys sys._myapp = "hello" """ ) ) t = pkgdir.ensure("tests", "test_app.py") t.write( textwrap.dedent( """\ import sys def test_app(): assert sys._myapp == "hello" """ ) ) > reprec = testdir.inline_run("-s") ../../../../pytest-3.10.1/testing/python/fixture.py:1853: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________ TestAutouseManagement.test_autouse_honored_for_yield _____________ self = testdir = def test_autouse_honored_for_yield(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(autouse=True) def tst(): global x x = 3 def test_gen(): def f(hello): assert x == abs(hello) yield f, 3 yield f, -3 """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:1871: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________ TestAutouseManagement.test_funcarg_and_setup _________________ self = testdir = def test_funcarg_and_setup(self, testdir): testdir.makepyfile( """ import pytest values = [] @pytest.fixture(scope="module") def arg(): values.append(1) return 0 @pytest.fixture(scope="module", autouse=True) def something(arg): values.append(2) def test_hello(arg): assert len(values) == 2 assert values == [1,2] assert arg == 0 def test_hello2(arg): assert len(values) == 2 assert values == [1,2] assert arg == 0 """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:1898: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________ TestAutouseManagement.test_uses_parametrized_resource _____________ self = testdir = def test_uses_parametrized_resource(self, testdir): testdir.makepyfile( """ import pytest values = [] @pytest.fixture(params=[1,2]) def arg(request): return request.param @pytest.fixture(autouse=True) def something(arg): values.append(arg) def test_hello(): if len(values) == 1: assert values == [1] elif len(values) == 2: assert values == [1, 2] else: 0/0 """ ) > reprec = testdir.inline_run("-s") ../../../../pytest-3.10.1/testing/python/fixture.py:1924: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________ TestAutouseManagement.test_session_parametrized_function ___________ self = testdir = def test_session_parametrized_function(self, testdir): testdir.makepyfile( """ import pytest values = [] @pytest.fixture(scope="session", params=[1,2]) def arg(request): return request.param @pytest.fixture(scope="function", autouse=True) def append(request, arg): if request.function.__name__ == "test_some": values.append(arg) def test_some(): pass def test_result(arg): assert len(values) == arg assert values[:arg] == [1,2][:arg] """ ) > reprec = testdir.inline_run("-v", "-s") ../../../../pytest-3.10.1/testing/python/fixture.py:1951: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____ TestAutouseManagement.test_class_function_parametrization_finalization ____ self = testdir = def test_class_function_parametrization_finalization(self, testdir): p = testdir.makeconftest( """ import pytest import pprint values = [] @pytest.fixture(scope="function", params=[1,2]) def farg(request): return request.param @pytest.fixture(scope="class", params=list("ab")) def carg(request): return request.param @pytest.fixture(scope="function", autouse=True) def append(request, farg, carg): def fin(): values.append("fin_%s%s" % (carg, farg)) request.addfinalizer(fin) """ ) testdir.makepyfile( """ import pytest class TestClass(object): def test_1(self): pass class TestClass2(object): def test_2(self): pass """ ) confcut = "--confcutdir={}".format(testdir.tmpdir) > reprec = testdir.inline_run("-v", "-s", confcut) ../../../../pytest-3.10.1/testing/python/fixture.py:1990: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ TestAutouseManagement.test_scope_ordering ___________________ self = testdir = def test_scope_ordering(self, testdir): testdir.makepyfile( """ import pytest values = [] @pytest.fixture(scope="function", autouse=True) def fappend2(): values.append(2) @pytest.fixture(scope="class", autouse=True) def classappend3(): values.append(3) @pytest.fixture(scope="module", autouse=True) def mappend(): values.append(1) class TestHallo(object): def test_method(self): assert values == [1,3,2] """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:2016: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______ TestAutouseManagement.test_parametrization_setup_teardown_ordering ______ self = testdir = def test_parametrization_setup_teardown_ordering(self, testdir): testdir.makepyfile( """ import pytest values = [] def pytest_generate_tests(metafunc): if metafunc.cls is None: assert metafunc.function is test_finish if metafunc.cls is not None: metafunc.parametrize("item", [1,2], scope="class") class TestClass(object): @pytest.fixture(scope="class", autouse=True) def addteardown(self, item, request): values.append("setup-%d" % item) request.addfinalizer(lambda: values.append("teardown-%d" % item)) def test_step1(self, item): values.append("step1-%d" % item) def test_step2(self, item): values.append("step2-%d" % item) def test_finish(): print (values) assert values == ["setup-1", "step1-1", "step2-1", "teardown-1", "setup-2", "step1-2", "step2-2", "teardown-2",] """ ) > reprec = testdir.inline_run("-s") ../../../../pytest-3.10.1/testing/python/fixture.py:2045: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________ TestAutouseManagement.test_ordering_autouse_before_explicit __________ self = testdir = def test_ordering_autouse_before_explicit(self, testdir): testdir.makepyfile( """ import pytest values = [] @pytest.fixture(autouse=True) def fix1(): values.append(1) @pytest.fixture() def arg1(): values.append(2) def test_hello(arg1): assert values == [1,2] """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:2064: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___ TestAutouseManagement.test_ordering_dependencies_torndown_first[p10-p00] ___ self = testdir = param1 = '', param2 = '' @pytest.mark.issue226 @pytest.mark.parametrize("param1", ["", "params=[1]"], ids=["p00", "p01"]) @pytest.mark.parametrize("param2", ["", "params=[1]"], ids=["p10", "p11"]) def test_ordering_dependencies_torndown_first(self, testdir, param1, param2): testdir.makepyfile( """ import pytest values = [] @pytest.fixture(%(param1)s) def arg1(request): request.addfinalizer(lambda: values.append("fin1")) values.append("new1") @pytest.fixture(%(param2)s) def arg2(request, arg1): request.addfinalizer(lambda: values.append("fin2")) values.append("new2") def test_arg(arg2): pass def test_check(): assert values == ["new1", "new2", "fin2", "fin1"] """ % locals() ) > reprec = testdir.inline_run("-s") ../../../../pytest-3.10.1/testing/python/fixture.py:2091: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___ TestAutouseManagement.test_ordering_dependencies_torndown_first[p10-p01] ___ self = testdir = param1 = 'params=[1]', param2 = '' @pytest.mark.issue226 @pytest.mark.parametrize("param1", ["", "params=[1]"], ids=["p00", "p01"]) @pytest.mark.parametrize("param2", ["", "params=[1]"], ids=["p10", "p11"]) def test_ordering_dependencies_torndown_first(self, testdir, param1, param2): testdir.makepyfile( """ import pytest values = [] @pytest.fixture(%(param1)s) def arg1(request): request.addfinalizer(lambda: values.append("fin1")) values.append("new1") @pytest.fixture(%(param2)s) def arg2(request, arg1): request.addfinalizer(lambda: values.append("fin2")) values.append("new2") def test_arg(arg2): pass def test_check(): assert values == ["new1", "new2", "fin2", "fin1"] """ % locals() ) > reprec = testdir.inline_run("-s") ../../../../pytest-3.10.1/testing/python/fixture.py:2091: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___ TestAutouseManagement.test_ordering_dependencies_torndown_first[p11-p00] ___ self = testdir = param1 = '', param2 = 'params=[1]' @pytest.mark.issue226 @pytest.mark.parametrize("param1", ["", "params=[1]"], ids=["p00", "p01"]) @pytest.mark.parametrize("param2", ["", "params=[1]"], ids=["p10", "p11"]) def test_ordering_dependencies_torndown_first(self, testdir, param1, param2): testdir.makepyfile( """ import pytest values = [] @pytest.fixture(%(param1)s) def arg1(request): request.addfinalizer(lambda: values.append("fin1")) values.append("new1") @pytest.fixture(%(param2)s) def arg2(request, arg1): request.addfinalizer(lambda: values.append("fin2")) values.append("new2") def test_arg(arg2): pass def test_check(): assert values == ["new1", "new2", "fin2", "fin1"] """ % locals() ) > reprec = testdir.inline_run("-s") ../../../../pytest-3.10.1/testing/python/fixture.py:2091: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___ TestAutouseManagement.test_ordering_dependencies_torndown_first[p11-p01] ___ self = testdir = param1 = 'params=[1]', param2 = 'params=[1]' @pytest.mark.issue226 @pytest.mark.parametrize("param1", ["", "params=[1]"], ids=["p00", "p01"]) @pytest.mark.parametrize("param2", ["", "params=[1]"], ids=["p10", "p11"]) def test_ordering_dependencies_torndown_first(self, testdir, param1, param2): testdir.makepyfile( """ import pytest values = [] @pytest.fixture(%(param1)s) def arg1(request): request.addfinalizer(lambda: values.append("fin1")) values.append("new1") @pytest.fixture(%(param2)s) def arg2(request, arg1): request.addfinalizer(lambda: values.append("fin2")) values.append("new2") def test_arg(arg2): pass def test_check(): assert values == ["new1", "new2", "fin2", "fin1"] """ % locals() ) > reprec = testdir.inline_run("-s") ../../../../pytest-3.10.1/testing/python/fixture.py:2091: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________ TestFixtureMarker.test_parametrize ______________________ self = testdir = def test_parametrize(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(params=["a", "b", "c"]) def arg(request): return request.param values = [] def test_param(arg): values.append(arg) def test_result(): assert values == list("abc") """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:2110: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________ TestFixtureMarker.test_multiple_parametrization_issue_736 ___________ self = testdir = def test_multiple_parametrization_issue_736(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(params=[1,2,3]) def foo(request): return request.param @pytest.mark.parametrize('foobar', [4,5,6]) def test_issue(foo, foobar): assert foo in [1,2,3] assert foobar in [4,5,6] """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:2128: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _ TestFixtureMarker.test_override_parametrized_fixture_issue_979['fixt, val'] __ self = testdir = param_args = "'fixt, val'" @pytest.mark.parametrize( "param_args", ["'fixt, val'", "'fixt,val'", "['fixt', 'val']", "('fixt', 'val')"], ) def test_override_parametrized_fixture_issue_979(self, testdir, param_args): """Make sure a parametrized argument can override a parametrized fixture. This was a regression introduced in the fix for #736. """ testdir.makepyfile( """ import pytest @pytest.fixture(params=[1, 2]) def fixt(request): return request.param @pytest.mark.parametrize(%s, [(3, 'x'), (4, 'x')]) def test_foo(fixt, val): pass """ % param_args ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:2154: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __ TestFixtureMarker.test_override_parametrized_fixture_issue_979['fixt,val'] __ self = testdir = param_args = "'fixt,val'" @pytest.mark.parametrize( "param_args", ["'fixt, val'", "'fixt,val'", "['fixt', 'val']", "('fixt', 'val')"], ) def test_override_parametrized_fixture_issue_979(self, testdir, param_args): """Make sure a parametrized argument can override a parametrized fixture. This was a regression introduced in the fix for #736. """ testdir.makepyfile( """ import pytest @pytest.fixture(params=[1, 2]) def fixt(request): return request.param @pytest.mark.parametrize(%s, [(3, 'x'), (4, 'x')]) def test_foo(fixt, val): pass """ % param_args ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:2154: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning TestFixtureMarker.test_override_parametrized_fixture_issue_979[['fixt', 'val']] self = testdir = param_args = "['fixt', 'val']" @pytest.mark.parametrize( "param_args", ["'fixt, val'", "'fixt,val'", "['fixt', 'val']", "('fixt', 'val')"], ) def test_override_parametrized_fixture_issue_979(self, testdir, param_args): """Make sure a parametrized argument can override a parametrized fixture. This was a regression introduced in the fix for #736. """ testdir.makepyfile( """ import pytest @pytest.fixture(params=[1, 2]) def fixt(request): return request.param @pytest.mark.parametrize(%s, [(3, 'x'), (4, 'x')]) def test_foo(fixt, val): pass """ % param_args ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:2154: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning TestFixtureMarker.test_override_parametrized_fixture_issue_979[('fixt', 'val')] self = testdir = param_args = "('fixt', 'val')" @pytest.mark.parametrize( "param_args", ["'fixt, val'", "'fixt,val'", "['fixt', 'val']", "('fixt', 'val')"], ) def test_override_parametrized_fixture_issue_979(self, testdir, param_args): """Make sure a parametrized argument can override a parametrized fixture. This was a regression introduced in the fix for #736. """ testdir.makepyfile( """ import pytest @pytest.fixture(params=[1, 2]) def fixt(request): return request.param @pytest.mark.parametrize(%s, [(3, 'x'), (4, 'x')]) def test_foo(fixt, val): pass """ % param_args ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:2154: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestFixtureMarker.test_scope_session _____________________ self = testdir = def test_scope_session(self, testdir): testdir.makepyfile( """ import pytest values = [] @pytest.fixture(scope="module") def arg(): values.append(1) return 1 def test_1(arg): assert arg == 1 def test_2(arg): assert arg == 1 assert len(values) == 1 class TestClass(object): def test3(self, arg): assert arg == 1 assert len(values) == 1 """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:2178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestFixtureMarker.test_scope_session_exc ___________________ self = testdir = def test_scope_session_exc(self, testdir): testdir.makepyfile( """ import pytest values = [] @pytest.fixture(scope="session") def fix(): values.append(1) pytest.skip('skipping') def test_1(fix): pass def test_2(fix): pass def test_last(): assert values == [1] """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:2199: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________ TestFixtureMarker.test_scope_session_exc_two_fix _______________ self = testdir = def test_scope_session_exc_two_fix(self, testdir): testdir.makepyfile( """ import pytest values = [] m = [] @pytest.fixture(scope="session") def a(): values.append(1) pytest.skip('skipping') @pytest.fixture(scope="session") def b(a): m.append(1) def test_1(b): pass def test_2(b): pass def test_last(): assert values == [1] assert m == [] """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:2225: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________________ TestFixtureMarker.test_scope_exc _______________________ self = testdir = def test_scope_exc(self, testdir): testdir.makepyfile( test_foo=""" def test_foo(fix): pass """, test_bar=""" def test_bar(fix): pass """, conftest=""" import pytest reqs = [] @pytest.fixture(scope="session") def fix(request): reqs.append(1) pytest.skip() @pytest.fixture def req_list(): return reqs """, test_real=""" def test_last(req_list): assert req_list == [1] """, ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:2254: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________ TestFixtureMarker.test_scope_module_uses_session _______________ self = testdir = def test_scope_module_uses_session(self, testdir): testdir.makepyfile( """ import pytest values = [] @pytest.fixture(scope="module") def arg(): values.append(1) return 1 def test_1(arg): assert arg == 1 def test_2(arg): assert arg == 1 assert len(values) == 1 class TestClass(object): def test3(self, arg): assert arg == 1 assert len(values) == 1 """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:2278: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestFixtureMarker.test_scope_module_and_finalizer _______________ self = testdir = def test_scope_module_and_finalizer(self, testdir): testdir.makeconftest( """ import pytest finalized_list = [] created_list = [] @pytest.fixture(scope="module") def arg(request): created_list.append(1) assert request.scope == "module" request.addfinalizer(lambda: finalized_list.append(1)) @pytest.fixture def created(request): return len(created_list) @pytest.fixture def finalized(request): return len(finalized_list) """ ) testdir.makepyfile( test_mod1=""" def test_1(arg, created, finalized): assert created == 1 assert finalized == 0 def test_2(arg, created, finalized): assert created == 1 assert finalized == 0""", test_mod2=""" def test_3(arg, created, finalized): assert created == 2 assert finalized == 1""", test_mode3=""" def test_4(arg, created, finalized): assert created == 3 assert finalized == 2 """, ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:2318: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________ TestFixtureMarker.test_scope_mismatch_various[getfixturevalue] ________ self = testdir = method = 'request.getfixturevalue("arg")' @pytest.mark.parametrize( "method", [ 'request.getfixturevalue("arg")', 'request.cached_setup(lambda: None, scope="function")', ], ids=["getfixturevalue", "cached_setup"], ) def test_scope_mismatch_various(self, testdir, method): testdir.makeconftest( """ import pytest finalized = [] created = [] @pytest.fixture(scope="function") def arg(request): pass """ ) testdir.makepyfile( test_mod1=""" import pytest @pytest.fixture(scope="session") def arg(request): %s def test_1(arg): pass """ % method ) result = testdir.runpytest() assert result.ret != 0 result.stdout.fnmatch_lines( > ["*ScopeMismatch*You tried*function*session*request*"] ) E Failed: nomatch: '*ScopeMismatch*You tried*function*session*request*' E and: '' E remains unmatched: '*ScopeMismatch*You tried*function*session*request*' ../../../../pytest-3.10.1/testing/python/fixture.py:2354: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________ TestFixtureMarker.test_scope_mismatch_various[cached_setup] __________ self = testdir = method = 'request.cached_setup(lambda: None, scope="function")' @pytest.mark.parametrize( "method", [ 'request.getfixturevalue("arg")', 'request.cached_setup(lambda: None, scope="function")', ], ids=["getfixturevalue", "cached_setup"], ) def test_scope_mismatch_various(self, testdir, method): testdir.makeconftest( """ import pytest finalized = [] created = [] @pytest.fixture(scope="function") def arg(request): pass """ ) testdir.makepyfile( test_mod1=""" import pytest @pytest.fixture(scope="session") def arg(request): %s def test_1(arg): pass """ % method ) result = testdir.runpytest() assert result.ret != 0 result.stdout.fnmatch_lines( > ["*ScopeMismatch*You tried*function*session*request*"] ) E Failed: nomatch: '*ScopeMismatch*You tried*function*session*request*' E and: '' E remains unmatched: '*ScopeMismatch*You tried*function*session*request*' ../../../../pytest-3.10.1/testing/python/fixture.py:2354: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestFixtureMarker.test_register_only_with_mark ________________ self = testdir = def test_register_only_with_mark(self, testdir): testdir.makeconftest( """ import pytest @pytest.fixture() def arg(): return 1 """ ) testdir.makepyfile( test_mod1=""" import pytest @pytest.fixture() def arg(arg): return arg + 1 def test_1(arg): assert arg == 2 """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:2376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________________ TestFixtureMarker.test_parametrize_and_scope _________________ self = testdir = def test_parametrize_and_scope(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope="module", params=["a", "b", "c"]) def arg(request): return request.param values = [] def test_param(arg): values.append(arg) """ ) > reprec = testdir.inline_run("-v") ../../../../pytest-3.10.1/testing/python/fixture.py:2391: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ TestFixtureMarker.test_scope_mismatch _____________________ self = testdir = def test_scope_mismatch(self, testdir): testdir.makeconftest( """ import pytest @pytest.fixture(scope="function") def arg(request): pass """ ) testdir.makepyfile( """ import pytest @pytest.fixture(scope="session") def arg(arg): pass def test_mismatch(arg): pass """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*ScopeMismatch*", "*1 error*"]) E Failed: nomatch: '*ScopeMismatch*' E and: '' E remains unmatched: '*ScopeMismatch*' ../../../../pytest-3.10.1/testing/python/fixture.py:2419: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestFixtureMarker.test_parametrize_separated_order ______________ self = testdir = def test_parametrize_separated_order(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope="module", params=[1, 2]) def arg(request): return request.param values = [] def test_1(arg): values.append(arg) def test_2(arg): values.append(arg) """ ) > reprec = testdir.inline_run("-v") ../../../../pytest-3.10.1/testing/python/fixture.py:2437: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________ TestFixtureMarker.test_module_parametrized_ordering ______________ self = testdir = def test_module_parametrized_ordering(self, testdir): testdir.makeini( """ [pytest] console_output_style=classic """ ) testdir.makeconftest( """ import pytest @pytest.fixture(scope="session", params="s1 s2".split()) def sarg(): pass @pytest.fixture(scope="module", params="m1 m2".split()) def marg(): pass """ ) testdir.makepyfile( test_mod1=""" def test_func(sarg): pass def test_func1(marg): pass """, test_mod2=""" def test_func2(sarg): pass def test_func3(sarg, marg): pass def test_func3b(sarg, marg): pass def test_func4(marg): pass """, ) result = testdir.runpytest("-v") result.stdout.fnmatch_lines( """ test_mod1.py::test_func[s1] PASSED test_mod2.py::test_func2[s1] PASSED test_mod2.py::test_func3[s1-m1] PASSED test_mod2.py::test_func3b[s1-m1] PASSED test_mod2.py::test_func3[s1-m2] PASSED test_mod2.py::test_func3b[s1-m2] PASSED test_mod1.py::test_func[s2] PASSED test_mod2.py::test_func2[s2] PASSED test_mod2.py::test_func3[s2-m1] PASSED test_mod2.py::test_func3b[s2-m1] PASSED test_mod2.py::test_func4[m1] PASSED test_mod2.py::test_func3[s2-m2] PASSED test_mod2.py::test_func3b[s2-m2] PASSED test_mod2.py::test_func4[m2] PASSED test_mod1.py::test_func1[m1] PASSED test_mod1.py::test_func1[m2] PASSED > """ ) E Failed: nomatch: 'test_mod1.py::test_func[s1] PASSED' E and: '' E remains unmatched: 'test_mod1.py::test_func[s1] PASSED' ../../../../pytest-3.10.1/testing/python/fixture.py:2498: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestFixtureMarker.test_dynamic_parametrized_ordering _____________ self = testdir = def test_dynamic_parametrized_ordering(self, testdir): testdir.makeini( """ [pytest] console_output_style=classic """ ) testdir.makeconftest( """ import pytest def pytest_configure(config): class DynamicFixturePlugin(object): @pytest.fixture(scope='session', params=['flavor1', 'flavor2']) def flavor(self, request): return request.param config.pluginmanager.register(DynamicFixturePlugin(), 'flavor-fixture') @pytest.fixture(scope='session', params=['vxlan', 'vlan']) def encap(request): return request.param @pytest.fixture(scope='session', autouse='True') def reprovision(request, flavor, encap): pass """ ) testdir.makepyfile( """ def test(reprovision): pass def test2(reprovision): pass """ ) result = testdir.runpytest("-v") result.stdout.fnmatch_lines( """ test_dynamic_parametrized_ordering.py::test[flavor1-vxlan] PASSED test_dynamic_parametrized_ordering.py::test2[flavor1-vxlan] PASSED test_dynamic_parametrized_ordering.py::test[flavor2-vxlan] PASSED test_dynamic_parametrized_ordering.py::test2[flavor2-vxlan] PASSED test_dynamic_parametrized_ordering.py::test[flavor2-vlan] PASSED test_dynamic_parametrized_ordering.py::test2[flavor2-vlan] PASSED test_dynamic_parametrized_ordering.py::test[flavor1-vlan] PASSED test_dynamic_parametrized_ordering.py::test2[flavor1-vlan] PASSED > """ ) E Failed: nomatch: 'test_dynamic_parametrized_ordering.py::test[flavor1-vxlan] PASSED' E and: '' E remains unmatched: 'test_dynamic_parametrized_ordering.py::test[flavor1-vxlan] PASSED' ../../../../pytest-3.10.1/testing/python/fixture.py:2547: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ TestFixtureMarker.test_class_ordering _____________________ self = testdir = def test_class_ordering(self, testdir): testdir.makeini( """ [pytest] console_output_style=classic """ ) testdir.makeconftest( """ import pytest values = [] @pytest.fixture(scope="function", params=[1,2]) def farg(request): return request.param @pytest.fixture(scope="class", params=list("ab")) def carg(request): return request.param @pytest.fixture(scope="function", autouse=True) def append(request, farg, carg): def fin(): values.append("fin_%s%s" % (carg, farg)) request.addfinalizer(fin) """ ) testdir.makepyfile( """ import pytest class TestClass2(object): def test_1(self): pass def test_2(self): pass class TestClass(object): def test_3(self): pass """ ) result = testdir.runpytest("-vs") result.stdout.re_match_lines( r""" test_class_ordering.py::TestClass2::test_1\[a-1\] PASSED test_class_ordering.py::TestClass2::test_1\[a-2\] PASSED test_class_ordering.py::TestClass2::test_2\[a-1\] PASSED test_class_ordering.py::TestClass2::test_2\[a-2\] PASSED test_class_ordering.py::TestClass2::test_1\[b-1\] PASSED test_class_ordering.py::TestClass2::test_1\[b-2\] PASSED test_class_ordering.py::TestClass2::test_2\[b-1\] PASSED test_class_ordering.py::TestClass2::test_2\[b-2\] PASSED test_class_ordering.py::TestClass::test_3\[a-1\] PASSED test_class_ordering.py::TestClass::test_3\[a-2\] PASSED test_class_ordering.py::TestClass::test_3\[b-1\] PASSED test_class_ordering.py::TestClass::test_3\[b-2\] PASSED > """ ) E Failed: nomatch: 'test_class_ordering.py::TestClass2::test_1\\[a-1\\] PASSED' E and: '' E remains unmatched: 'test_class_ordering.py::TestClass2::test_1\\[a-1\\] PASSED' ../../../../pytest-3.10.1/testing/python/fixture.py:2607: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____ TestFixtureMarker.test_parametrize_separated_order_higher_scope_first _____ self = testdir = def test_parametrize_separated_order_higher_scope_first(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope="function", params=[1, 2]) def arg(request): param = request.param request.addfinalizer(lambda: values.append("fin:%s" % param)) values.append("create:%s" % param) return request.param @pytest.fixture(scope="module", params=["mod1", "mod2"]) def modarg(request): param = request.param request.addfinalizer(lambda: values.append("fin:%s" % param)) values.append("create:%s" % param) return request.param values = [] def test_1(arg): values.append("test1") def test_2(modarg): values.append("test2") def test_3(arg, modarg): values.append("test3") def test_4(modarg, arg): values.append("test4") """ ) > reprec = testdir.inline_run("-v") ../../../../pytest-3.10.1/testing/python/fixture.py:2640: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________ TestFixtureMarker.test_parametrized_fixture_teardown_order __________ self = testdir = def test_parametrized_fixture_teardown_order(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(params=[1,2], scope="class") def param1(request): return request.param values = [] class TestClass(object): @classmethod @pytest.fixture(scope="class", autouse=True) def setup1(self, request, param1): values.append(1) request.addfinalizer(self.teardown1) @classmethod def teardown1(self): assert values.pop() == 1 @pytest.fixture(scope="class", autouse=True) def setup2(self, request, param1): values.append(2) request.addfinalizer(self.teardown2) @classmethod def teardown2(self): assert values.pop() == 2 def test(self): pass def test_finish(): assert not values """ ) result = testdir.runpytest("-v") result.stdout.fnmatch_lines( """ *3 passed* > """ ) E Failed: nomatch: '*3 passed*' E and: '' E remains unmatched: '*3 passed*' ../../../../pytest-3.10.1/testing/python/fixture.py:2723: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ TestFixtureMarker.test_fixture_finalizer ___________________ self = testdir = def test_fixture_finalizer(self, testdir): testdir.makeconftest( """ import pytest import sys @pytest.fixture def browser(request): def finalize(): sys.stdout.write('Finalized') request.addfinalizer(finalize) return {} """ ) b = testdir.mkdir("subdir") b.join("test_overridden_fixture_finalizer.py").write( textwrap.dedent( """\ import pytest @pytest.fixture def browser(browser): browser['visited'] = True return browser def test_browser(browser): assert browser['visited'] is True """ ) ) reprec = testdir.runpytest("-s") for test in ["test_browser"]: > reprec.stdout.fnmatch_lines("*Finalized*") E Failed: nomatch: '*Finalized*' E and: '' E remains unmatched: '*Finalized*' ../../../../pytest-3.10.1/testing/python/fixture.py:2759: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestFixtureMarker.test_class_scope_with_normal_tests _____________ self = testdir = def test_class_scope_with_normal_tests(self, testdir): testpath = testdir.makepyfile( """ import pytest class Box(object): value = 0 @pytest.fixture(scope='class') def a(request): Box.value += 1 return Box.value def test_a(a): assert a == 1 class Test1(object): def test_b(self, a): assert a == 2 class Test2(object): def test_c(self, a): assert a == 3""" ) > reprec = testdir.inline_run(testpath) ../../../../pytest-3.10.1/testing/python/fixture.py:2785: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestFixtureMarker.test_request_is_clean ____________________ self = testdir = def test_request_is_clean(self, testdir): testdir.makepyfile( """ import pytest values = [] @pytest.fixture(params=[1, 2]) def fix(request): request.addfinalizer(lambda: values.append(request.param)) def test_fix(fix): pass """ ) > reprec = testdir.inline_run("-s") ../../../../pytest-3.10.1/testing/python/fixture.py:2801: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________ TestFixtureMarker.test_parametrize_separated_lifecycle ____________ self = testdir = def test_parametrize_separated_lifecycle(self, testdir): testdir.makepyfile( """ import pytest values = [] @pytest.fixture(scope="module", params=[1, 2]) def arg(request): x = request.param request.addfinalizer(lambda: values.append("fin%s" % x)) return request.param def test_1(arg): values.append(arg) def test_2(arg): values.append(arg) """ ) > reprec = testdir.inline_run("-vs") ../../../../pytest-3.10.1/testing/python/fixture.py:2822: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____ TestFixtureMarker.test_parametrize_function_scoped_finalizers_called _____ self = testdir = def test_parametrize_function_scoped_finalizers_called(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope="function", params=[1, 2]) def arg(request): x = request.param request.addfinalizer(lambda: values.append("fin%s" % x)) return request.param values = [] def test_1(arg): values.append(arg) def test_2(arg): values.append(arg) def test_3(): assert len(values) == 8 assert values == [1, "fin1", 2, "fin2", 1, "fin1", 2, "fin2"] """ ) > reprec = testdir.inline_run("-v") ../../../../pytest-3.10.1/testing/python/fixture.py:2855: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______ TestFixtureMarker.test_finalizer_order_on_parametrization[session] ______ self = , scope = 'session' testdir = @pytest.mark.issue246 @pytest.mark.parametrize("scope", ["session", "function", "module"]) def test_finalizer_order_on_parametrization(self, scope, testdir): testdir.makepyfile( """ import pytest values = [] @pytest.fixture(scope=%(scope)r, params=["1"]) def fix1(request): return request.param @pytest.fixture(scope=%(scope)r) def fix2(request, base): def cleanup_fix2(): assert not values, "base should not have been finalized" request.addfinalizer(cleanup_fix2) @pytest.fixture(scope=%(scope)r) def base(request, fix1): def cleanup_base(): values.append("fin_base") print ("finalizing base") request.addfinalizer(cleanup_base) def test_begin(): pass def test_baz(base, fix2): pass def test_other(): pass """ % {"scope": scope} ) > reprec = testdir.inline_run("-lvs") ../../../../pytest-3.10.1/testing/python/fixture.py:2892: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____ TestFixtureMarker.test_finalizer_order_on_parametrization[function] ______ self = , scope = 'function' testdir = @pytest.mark.issue246 @pytest.mark.parametrize("scope", ["session", "function", "module"]) def test_finalizer_order_on_parametrization(self, scope, testdir): testdir.makepyfile( """ import pytest values = [] @pytest.fixture(scope=%(scope)r, params=["1"]) def fix1(request): return request.param @pytest.fixture(scope=%(scope)r) def fix2(request, base): def cleanup_fix2(): assert not values, "base should not have been finalized" request.addfinalizer(cleanup_fix2) @pytest.fixture(scope=%(scope)r) def base(request, fix1): def cleanup_base(): values.append("fin_base") print ("finalizing base") request.addfinalizer(cleanup_base) def test_begin(): pass def test_baz(base, fix2): pass def test_other(): pass """ % {"scope": scope} ) > reprec = testdir.inline_run("-lvs") ../../../../pytest-3.10.1/testing/python/fixture.py:2892: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______ TestFixtureMarker.test_finalizer_order_on_parametrization[module] _______ self = , scope = 'module' testdir = @pytest.mark.issue246 @pytest.mark.parametrize("scope", ["session", "function", "module"]) def test_finalizer_order_on_parametrization(self, scope, testdir): testdir.makepyfile( """ import pytest values = [] @pytest.fixture(scope=%(scope)r, params=["1"]) def fix1(request): return request.param @pytest.fixture(scope=%(scope)r) def fix2(request, base): def cleanup_fix2(): assert not values, "base should not have been finalized" request.addfinalizer(cleanup_fix2) @pytest.fixture(scope=%(scope)r) def base(request, fix1): def cleanup_base(): values.append("fin_base") print ("finalizing base") request.addfinalizer(cleanup_base) def test_begin(): pass def test_baz(base, fix2): pass def test_other(): pass """ % {"scope": scope} ) > reprec = testdir.inline_run("-lvs") ../../../../pytest-3.10.1/testing/python/fixture.py:2892: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________ TestFixtureMarker.test_class_scope_parametrization_ordering __________ self = testdir = @pytest.mark.issue396 def test_class_scope_parametrization_ordering(self, testdir): testdir.makepyfile( """ import pytest values = [] @pytest.fixture(params=["John", "Doe"], scope="class") def human(request): request.addfinalizer(lambda: values.append("fin %s" % request.param)) return request.param class TestGreetings(object): def test_hello(self, human): values.append("test_hello") class TestMetrics(object): def test_name(self, human): values.append("test_name") def test_population(self, human): values.append("test_population") """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:2918: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestFixtureMarker.test_parametrize_setup_function _______________ self = testdir = def test_parametrize_setup_function(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope="module", params=[1, 2]) def arg(request): return request.param @pytest.fixture(scope="module", autouse=True) def mysetup(request, arg): request.addfinalizer(lambda: values.append("fin%s" % arg)) values.append("setup%s" % arg) values = [] def test_1(arg): values.append(arg) def test_2(arg): values.append(arg) def test_3(): import pprint pprint.pprint(values) if arg == 1: assert values == ["setup1", 1, 1, ] elif arg == 2: assert values == ["setup1", 1, 1, "fin1", "setup2", 2, 2, ] """ ) > reprec = testdir.inline_run("-v") ../../../../pytest-3.10.1/testing/python/fixture.py:2964: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____ TestFixtureMarker.test_fixture_marked_function_not_collected_as_test _____ self = testdir = def test_fixture_marked_function_not_collected_as_test(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture def test_app(): return 1 def test_something(test_app): assert test_app == 1 """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:2979: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ TestFixtureMarker.test_params_and_ids _____________________ self = testdir = def test_params_and_ids(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(params=[object(), object()], ids=['alpha', 'beta']) def fix(request): return request.param def test_foo(fix): assert 1 """ ) res = testdir.runpytest("-v") > res.stdout.fnmatch_lines(["*test_foo*alpha*", "*test_foo*beta*"]) E Failed: nomatch: '*test_foo*alpha*' E and: '' E remains unmatched: '*test_foo*alpha*' ../../../../pytest-3.10.1/testing/python/fixture.py:2997: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestFixtureMarker.test_params_and_ids_yieldfixture ______________ self = testdir = def test_params_and_ids_yieldfixture(self, testdir): testdir.makepyfile( """ import pytest @pytest.yield_fixture(params=[object(), object()], ids=['alpha', 'beta']) def fix(request): yield request.param def test_foo(fix): assert 1 """ ) res = testdir.runpytest("-v") > res.stdout.fnmatch_lines(["*test_foo*alpha*", "*test_foo*beta*"]) E Failed: nomatch: '*test_foo*alpha*' E and: '' E remains unmatched: '*test_foo*alpha*' ../../../../pytest-3.10.1/testing/python/fixture.py:3014: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___ TestRequestScopeAccess.test_setup[session--fspath class function module] ___ self = testdir = scope = 'session', ok = '', error = 'fspath class function module' def test_setup(self, testdir, scope, ok, error): testdir.makepyfile( """ import pytest @pytest.fixture(scope=%r, autouse=True) def myscoped(request): for x in %r: assert hasattr(request, x) for x in %r: pytest.raises(AttributeError, lambda: getattr(request, x)) assert request.session assert request.config def test_func(): pass """ % (scope, ok.split(), error.split()) ) > reprec = testdir.inline_run("-l") ../../../../pytest-3.10.1/testing/python/fixture.py:3089: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____ TestRequestScopeAccess.test_setup[module-module fspath-cls function] _____ self = testdir = scope = 'module', ok = 'module fspath', error = 'cls function' def test_setup(self, testdir, scope, ok, error): testdir.makepyfile( """ import pytest @pytest.fixture(scope=%r, autouse=True) def myscoped(request): for x in %r: assert hasattr(request, x) for x in %r: pytest.raises(AttributeError, lambda: getattr(request, x)) assert request.session assert request.config def test_func(): pass """ % (scope, ok.split(), error.split()) ) > reprec = testdir.inline_run("-l") ../../../../pytest-3.10.1/testing/python/fixture.py:3089: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____ TestRequestScopeAccess.test_setup[class-module fspath cls-function] ______ self = testdir = scope = 'class', ok = 'module fspath cls', error = 'function' def test_setup(self, testdir, scope, ok, error): testdir.makepyfile( """ import pytest @pytest.fixture(scope=%r, autouse=True) def myscoped(request): for x in %r: assert hasattr(request, x) for x in %r: pytest.raises(AttributeError, lambda: getattr(request, x)) assert request.session assert request.config def test_func(): pass """ % (scope, ok.split(), error.split()) ) > reprec = testdir.inline_run("-l") ../../../../pytest-3.10.1/testing/python/fixture.py:3089: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___ TestRequestScopeAccess.test_setup[function-module fspath cls function-] ____ self = testdir = scope = 'function', ok = 'module fspath cls function', error = '' def test_setup(self, testdir, scope, ok, error): testdir.makepyfile( """ import pytest @pytest.fixture(scope=%r, autouse=True) def myscoped(request): for x in %r: assert hasattr(request, x) for x in %r: pytest.raises(AttributeError, lambda: getattr(request, x)) assert request.session assert request.config def test_func(): pass """ % (scope, ok.split(), error.split()) ) > reprec = testdir.inline_run("-l") ../../../../pytest-3.10.1/testing/python/fixture.py:3089: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __ TestRequestScopeAccess.test_funcarg[session--fspath class function module] __ self = testdir = scope = 'session', ok = '', error = 'fspath class function module' def test_funcarg(self, testdir, scope, ok, error): testdir.makepyfile( """ import pytest @pytest.fixture(scope=%r) def arg(request): for x in %r: assert hasattr(request, x) for x in %r: pytest.raises(AttributeError, lambda: getattr(request, x)) assert request.session assert request.config def test_func(arg): pass """ % (scope, ok.split(), error.split()) ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:3110: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____ TestRequestScopeAccess.test_funcarg[module-module fspath-cls function] ____ self = testdir = scope = 'module', ok = 'module fspath', error = 'cls function' def test_funcarg(self, testdir, scope, ok, error): testdir.makepyfile( """ import pytest @pytest.fixture(scope=%r) def arg(request): for x in %r: assert hasattr(request, x) for x in %r: pytest.raises(AttributeError, lambda: getattr(request, x)) assert request.session assert request.config def test_func(arg): pass """ % (scope, ok.split(), error.split()) ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:3110: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____ TestRequestScopeAccess.test_funcarg[class-module fspath cls-function] _____ self = testdir = scope = 'class', ok = 'module fspath cls', error = 'function' def test_funcarg(self, testdir, scope, ok, error): testdir.makepyfile( """ import pytest @pytest.fixture(scope=%r) def arg(request): for x in %r: assert hasattr(request, x) for x in %r: pytest.raises(AttributeError, lambda: getattr(request, x)) assert request.session assert request.config def test_func(arg): pass """ % (scope, ok.split(), error.split()) ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:3110: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __ TestRequestScopeAccess.test_funcarg[function-module fspath cls function-] ___ self = testdir = scope = 'function', ok = 'module fspath cls function', error = '' def test_funcarg(self, testdir, scope, ok, error): testdir.makepyfile( """ import pytest @pytest.fixture(scope=%r) def arg(request): for x in %r: assert hasattr(request, x) for x in %r: pytest.raises(AttributeError, lambda: getattr(request, x)) assert request.session assert request.config def test_func(arg): pass """ % (scope, ok.split(), error.split()) ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:3110: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ TestErrors.test_subfactory_missing_funcarg __________________ self = testdir = def test_subfactory_missing_funcarg(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture() def gen(qwe123): return 1 def test_something(gen): pass """ ) result = testdir.runpytest() assert result.ret != 0 result.stdout.fnmatch_lines( > ["*def gen(qwe123):*", "*fixture*qwe123*not found*", "*1 error*"] ) E Failed: nomatch: '*def gen(qwe123):*' E and: '' E remains unmatched: '*def gen(qwe123):*' ../../../../pytest-3.10.1/testing/python/fixture.py:3129: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestErrors.test_issue498_fixture_finalizer_failing ______________ self = testdir = def test_issue498_fixture_finalizer_failing(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture def fix1(request): def f(): raise KeyError request.addfinalizer(f) return object() values = [] def test_1(fix1): values.append(fix1) def test_2(fix1): values.append(fix1) def test_3(): assert values[0] != values[1] """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( """ *ERROR*teardown*test_1* *KeyError* *ERROR*teardown*test_2* *KeyError* *3 pass*2 error* > """ ) E Failed: nomatch: '*ERROR*teardown*test_1*' E and: '' E remains unmatched: '*ERROR*teardown*test_1*' ../../../../pytest-3.10.1/testing/python/fixture.py:3160: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ TestErrors.test_setupfunc_missing_funcarg ___________________ self = testdir = def test_setupfunc_missing_funcarg(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(autouse=True) def gen(qwe123): return 1 def test_something(): pass """ ) result = testdir.runpytest() assert result.ret != 0 result.stdout.fnmatch_lines( > ["*def gen(qwe123):*", "*fixture*qwe123*not found*", "*1 error*"] ) E Failed: nomatch: '*def gen(qwe123):*' E and: '' E remains unmatched: '*def gen(qwe123):*' ../../../../pytest-3.10.1/testing/python/fixture.py:3177: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ TestShowFixtures.test_funcarg_compat _____________________ self = testdir = def test_funcarg_compat(self, testdir): > config = testdir.parseconfigure("--funcargs") ../../../../pytest-3.10.1/testing/python/fixture.py:3183: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________________ TestShowFixtures.test_show_fixtures ______________________ self = testdir = def test_show_fixtures(self, testdir): result = testdir.runpytest("--fixtures") > result.stdout.fnmatch_lines(["*tmpdir*", "*temporary directory*"]) E Failed: nomatch: '*tmpdir*' E and: '' E remains unmatched: '*tmpdir*' ../../../../pytest-3.10.1/testing/python/fixture.py:3188: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestShowFixtures.test_show_fixtures_verbose __________________ self = testdir = def test_show_fixtures_verbose(self, testdir): result = testdir.runpytest("--fixtures", "-v") > result.stdout.fnmatch_lines(["*tmpdir*--*tmpdir.py*", "*temporary directory*"]) E Failed: nomatch: '*tmpdir*--*tmpdir.py*' E and: '' E remains unmatched: '*tmpdir*--*tmpdir.py*' ../../../../pytest-3.10.1/testing/python/fixture.py:3192: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ TestShowFixtures.test_show_fixtures_testmodule ________________ self = testdir = def test_show_fixtures_testmodule(self, testdir): p = testdir.makepyfile( ''' import pytest @pytest.fixture def _arg0(): """ hidden """ @pytest.fixture def arg1(): """ hello world """ ''' ) result = testdir.runpytest("--fixtures", p) result.stdout.fnmatch_lines( """ *tmpdir *fixtures defined from* *arg1* *hello world* > """ ) E Failed: nomatch: '*tmpdir' E and: '' E remains unmatched: '*tmpdir' ../../../../pytest-3.10.1/testing/python/fixture.py:3213: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestShowFixtures.test_show_fixtures_conftest[True] ______________ self = testdir = testmod = True @pytest.mark.parametrize("testmod", [True, False]) def test_show_fixtures_conftest(self, testdir, testmod): testdir.makeconftest( ''' import pytest @pytest.fixture def arg1(): """ hello world """ ''' ) if testmod: testdir.makepyfile( """ def test_hello(): pass """ ) result = testdir.runpytest("--fixtures") result.stdout.fnmatch_lines( """ *tmpdir* *fixtures defined from*conftest* *arg1* *hello world* > """ ) E Failed: nomatch: '*tmpdir*' E and: '' E remains unmatched: '*tmpdir*' ../../../../pytest-3.10.1/testing/python/fixture.py:3241: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestShowFixtures.test_show_fixtures_conftest[False] ______________ self = testdir = testmod = False @pytest.mark.parametrize("testmod", [True, False]) def test_show_fixtures_conftest(self, testdir, testmod): testdir.makeconftest( ''' import pytest @pytest.fixture def arg1(): """ hello world """ ''' ) if testmod: testdir.makepyfile( """ def test_hello(): pass """ ) result = testdir.runpytest("--fixtures") result.stdout.fnmatch_lines( """ *tmpdir* *fixtures defined from*conftest* *arg1* *hello world* > """ ) E Failed: nomatch: '*tmpdir*' E and: '' E remains unmatched: '*tmpdir*' ../../../../pytest-3.10.1/testing/python/fixture.py:3241: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestShowFixtures.test_show_fixtures_trimmed_doc ________________ self = testdir = def test_show_fixtures_trimmed_doc(self, testdir): p = testdir.makepyfile( textwrap.dedent( '''\ import pytest @pytest.fixture def arg1(): """ line1 line2 """ @pytest.fixture def arg2(): """ line1 line2 """ ''' ) ) result = testdir.runpytest("--fixtures", p) result.stdout.fnmatch_lines( textwrap.dedent( """\ * fixtures defined from test_show_fixtures_trimmed_doc * arg2 line1 line2 arg1 line1 line2 > """ ) ) E Failed: nomatch: '* fixtures defined from test_show_fixtures_trimmed_doc *' E and: '' E remains unmatched: '* fixtures defined from test_show_fixtures_trimmed_doc *' ../../../../pytest-3.10.1/testing/python/fixture.py:3277: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestShowFixtures.test_show_fixtures_indented_doc _______________ self = testdir = def test_show_fixtures_indented_doc(self, testdir): p = testdir.makepyfile( textwrap.dedent( '''\ import pytest @pytest.fixture def fixture1(): """ line1 indented line """ ''' ) ) result = testdir.runpytest("--fixtures", p) result.stdout.fnmatch_lines( textwrap.dedent( """\ * fixtures defined from test_show_fixtures_indented_doc * fixture1 line1 indented line > """ ) ) E Failed: nomatch: '* fixtures defined from test_show_fixtures_indented_doc *' E and: '' E remains unmatched: '* fixtures defined from test_show_fixtures_indented_doc *' ../../../../pytest-3.10.1/testing/python/fixture.py:3303: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____ TestShowFixtures.test_show_fixtures_indented_doc_first_line_unindented ____ self = testdir = def test_show_fixtures_indented_doc_first_line_unindented(self, testdir): p = testdir.makepyfile( textwrap.dedent( '''\ import pytest @pytest.fixture def fixture1(): """line1 line2 indented line """ ''' ) ) result = testdir.runpytest("--fixtures", p) result.stdout.fnmatch_lines( textwrap.dedent( """\ * fixtures defined from test_show_fixtures_indented_doc_first_line_unindented * fixture1 line1 line2 indented line > """ ) ) E Failed: nomatch: '* fixtures defined from test_show_fixtures_indented_doc_first_line_unindented *' E and: '' E remains unmatched: '* fixtures defined from test_show_fixtures_indented_doc_first_line_unindented *' ../../../../pytest-3.10.1/testing/python/fixture.py:3330: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________ TestShowFixtures.test_show_fixtures_indented_in_class _____________ self = testdir = def test_show_fixtures_indented_in_class(self, testdir): p = testdir.makepyfile( textwrap.dedent( '''\ import pytest class TestClass(object): @pytest.fixture def fixture1(self): """line1 line2 indented line """ ''' ) ) result = testdir.runpytest("--fixtures", p) result.stdout.fnmatch_lines( textwrap.dedent( """\ * fixtures defined from test_show_fixtures_indented_in_class * fixture1 line1 line2 indented line > """ ) ) E Failed: nomatch: '* fixtures defined from test_show_fixtures_indented_in_class *' E and: '' E remains unmatched: '* fixtures defined from test_show_fixtures_indented_in_class *' ../../../../pytest-3.10.1/testing/python/fixture.py:3358: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestShowFixtures.test_show_fixtures_different_files ______________ self = testdir = def test_show_fixtures_different_files(self, testdir): """ #833: --fixtures only shows fixtures from first file """ testdir.makepyfile( test_a=''' import pytest @pytest.fixture def fix_a(): """Fixture A""" pass def test_a(fix_a): pass ''' ) testdir.makepyfile( test_b=''' import pytest @pytest.fixture def fix_b(): """Fixture B""" pass def test_b(fix_b): pass ''' ) result = testdir.runpytest("--fixtures") result.stdout.fnmatch_lines( """ * fixtures defined from test_a * fix_a Fixture A * fixtures defined from test_b * fix_b Fixture B > """ ) E Failed: nomatch: '* fixtures defined from test_a *' E and: '' E remains unmatched: '* fixtures defined from test_a *' ../../../../pytest-3.10.1/testing/python/fixture.py:3402: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestShowFixtures.test_show_fixtures_with_same_name ______________ self = testdir = def test_show_fixtures_with_same_name(self, testdir): testdir.makeconftest( ''' import pytest @pytest.fixture def arg1(): """Hello World in conftest.py""" return "Hello World" ''' ) testdir.makepyfile( """ def test_foo(arg1): assert arg1 == "Hello World" """ ) testdir.makepyfile( ''' import pytest @pytest.fixture def arg1(): """Hi from test module""" return "Hi" def test_bar(arg1): assert arg1 == "Hi" ''' ) result = testdir.runpytest("--fixtures") result.stdout.fnmatch_lines( """ * fixtures defined from conftest * arg1 Hello World in conftest.py * fixtures defined from test_show_fixtures_with_same_name * arg1 Hi from test module > """ ) E Failed: nomatch: '* fixtures defined from conftest *' E and: '' E remains unmatched: '* fixtures defined from conftest *' ../../../../pytest-3.10.1/testing/python/fixture.py:3442: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestContextManagerFixtureFuncs.test_simple[fixture] ______________ self = testdir = flavor = None def test_simple(self, testdir, flavor): testdir.makepyfile( """ from __future__ import print_function from test_context import fixture @fixture def arg1(): print ("setup") yield 1 print ("teardown") def test_1(arg1): print ("test1", arg1) def test_2(arg1): print ("test2", arg1) assert 0 """ ) result = testdir.runpytest("-s") result.stdout.fnmatch_lines( """ *setup* *test1 1* *teardown* *setup* *test2 1* *teardown* > """ ) E Failed: nomatch: '*setup*' E and: '' E remains unmatched: '*setup*' ../../../../pytest-3.10.1/testing/python/fixture.py:3499: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________ TestContextManagerFixtureFuncs.test_simple[yield_fixture] ___________ self = testdir = flavor = None def test_simple(self, testdir, flavor): testdir.makepyfile( """ from __future__ import print_function from test_context import fixture @fixture def arg1(): print ("setup") yield 1 print ("teardown") def test_1(arg1): print ("test1", arg1) def test_2(arg1): print ("test2", arg1) assert 0 """ ) result = testdir.runpytest("-s") result.stdout.fnmatch_lines( """ *setup* *test1 1* *teardown* *setup* *test2 1* *teardown* > """ ) E Failed: nomatch: '*setup*' E and: '' E remains unmatched: '*setup*' ../../../../pytest-3.10.1/testing/python/fixture.py:3499: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestContextManagerFixtureFuncs.test_scoped[fixture] ______________ self = testdir = flavor = None def test_scoped(self, testdir, flavor): testdir.makepyfile( """ from __future__ import print_function from test_context import fixture @fixture(scope="module") def arg1(): print ("setup") yield 1 print ("teardown") def test_1(arg1): print ("test1", arg1) def test_2(arg1): print ("test2", arg1) """ ) result = testdir.runpytest("-s") result.stdout.fnmatch_lines( """ *setup* *test1 1* *test2 1* *teardown* > """ ) E Failed: nomatch: '*setup*' E and: '' E remains unmatched: '*setup*' ../../../../pytest-3.10.1/testing/python/fixture.py:3525: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________ TestContextManagerFixtureFuncs.test_scoped[yield_fixture] ___________ self = testdir = flavor = None def test_scoped(self, testdir, flavor): testdir.makepyfile( """ from __future__ import print_function from test_context import fixture @fixture(scope="module") def arg1(): print ("setup") yield 1 print ("teardown") def test_1(arg1): print ("test1", arg1) def test_2(arg1): print ("test2", arg1) """ ) result = testdir.runpytest("-s") result.stdout.fnmatch_lines( """ *setup* *test1 1* *test2 1* *teardown* > """ ) E Failed: nomatch: '*setup*' E and: '' E remains unmatched: '*setup*' ../../../../pytest-3.10.1/testing/python/fixture.py:3525: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________ TestContextManagerFixtureFuncs.test_setup_exception[fixture] _________ self = testdir = flavor = None def test_setup_exception(self, testdir, flavor): testdir.makepyfile( """ from test_context import fixture @fixture(scope="module") def arg1(): pytest.fail("setup") yield 1 def test_1(arg1): pass """ ) result = testdir.runpytest("-s") result.stdout.fnmatch_lines( """ *pytest.fail*setup* *1 error* > """ ) E Failed: nomatch: '*pytest.fail*setup*' E and: '' E remains unmatched: '*pytest.fail*setup*' ../../../../pytest-3.10.1/testing/python/fixture.py:3545: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______ TestContextManagerFixtureFuncs.test_setup_exception[yield_fixture] ______ self = testdir = flavor = None def test_setup_exception(self, testdir, flavor): testdir.makepyfile( """ from test_context import fixture @fixture(scope="module") def arg1(): pytest.fail("setup") yield 1 def test_1(arg1): pass """ ) result = testdir.runpytest("-s") result.stdout.fnmatch_lines( """ *pytest.fail*setup* *1 error* > """ ) E Failed: nomatch: '*pytest.fail*setup*' E and: '' E remains unmatched: '*pytest.fail*setup*' ../../../../pytest-3.10.1/testing/python/fixture.py:3545: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______ TestContextManagerFixtureFuncs.test_teardown_exception[fixture] ________ self = testdir = flavor = None def test_teardown_exception(self, testdir, flavor): testdir.makepyfile( """ from test_context import fixture @fixture(scope="module") def arg1(): yield 1 pytest.fail("teardown") def test_1(arg1): pass """ ) result = testdir.runpytest("-s") result.stdout.fnmatch_lines( """ *pytest.fail*teardown* *1 passed*1 error* > """ ) E Failed: nomatch: '*pytest.fail*teardown*' E and: '' E remains unmatched: '*pytest.fail*teardown*' ../../../../pytest-3.10.1/testing/python/fixture.py:3565: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____ TestContextManagerFixtureFuncs.test_teardown_exception[yield_fixture] _____ self = testdir = flavor = None def test_teardown_exception(self, testdir, flavor): testdir.makepyfile( """ from test_context import fixture @fixture(scope="module") def arg1(): yield 1 pytest.fail("teardown") def test_1(arg1): pass """ ) result = testdir.runpytest("-s") result.stdout.fnmatch_lines( """ *pytest.fail*teardown* *1 passed*1 error* > """ ) E Failed: nomatch: '*pytest.fail*teardown*' E and: '' E remains unmatched: '*pytest.fail*teardown*' ../../../../pytest-3.10.1/testing/python/fixture.py:3565: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______ TestContextManagerFixtureFuncs.test_yields_more_than_one[fixture] _______ self = testdir = flavor = None def test_yields_more_than_one(self, testdir, flavor): testdir.makepyfile( """ from test_context import fixture @fixture(scope="module") def arg1(): yield 1 yield 2 def test_1(arg1): pass """ ) result = testdir.runpytest("-s") result.stdout.fnmatch_lines( """ *fixture function* *test_yields*:2* > """ ) E Failed: nomatch: '*fixture function*' E and: '' E remains unmatched: '*fixture function*' ../../../../pytest-3.10.1/testing/python/fixture.py:3585: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___ TestContextManagerFixtureFuncs.test_yields_more_than_one[yield_fixture] ____ self = testdir = flavor = None def test_yields_more_than_one(self, testdir, flavor): testdir.makepyfile( """ from test_context import fixture @fixture(scope="module") def arg1(): yield 1 yield 2 def test_1(arg1): pass """ ) result = testdir.runpytest("-s") result.stdout.fnmatch_lines( """ *fixture function* *test_yields*:2* > """ ) E Failed: nomatch: '*fixture function*' E and: '' E remains unmatched: '*fixture function*' ../../../../pytest-3.10.1/testing/python/fixture.py:3585: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________ TestContextManagerFixtureFuncs.test_custom_name[fixture] ___________ self = testdir = flavor = None def test_custom_name(self, testdir, flavor): testdir.makepyfile( """ from test_context import fixture @fixture(name='meow') def arg1(): return 'mew' def test_1(meow): print(meow) """ ) result = testdir.runpytest("-s") > result.stdout.fnmatch_lines("*mew*") E Failed: nomatch: '*mew*' E and: '' E remains unmatched: '*mew*' ../../../../pytest-3.10.1/testing/python/fixture.py:3600: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________ TestContextManagerFixtureFuncs.test_custom_name[yield_fixture] ________ self = testdir = flavor = None def test_custom_name(self, testdir, flavor): testdir.makepyfile( """ from test_context import fixture @fixture(name='meow') def arg1(): return 'mew' def test_1(meow): print(meow) """ ) result = testdir.runpytest("-s") > result.stdout.fnmatch_lines("*mew*") E Failed: nomatch: '*mew*' E and: '' E remains unmatched: '*mew*' ../../../../pytest-3.10.1/testing/python/fixture.py:3600: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestParameterizedSubRequest.test_call_from_fixture ______________ self = testdir = def test_call_from_fixture(self, testdir): testdir.makepyfile( test_call_from_fixture=""" import pytest @pytest.fixture(params=[0, 1, 2]) def fix_with_param(request): return request.param @pytest.fixture def get_named_fixture(request): return request.getfixturevalue('fix_with_param') def test_foo(request, get_named_fixture): pass """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ "The requested fixture has no parameter defined for test:", " test_call_from_fixture.py::test_foo", "Requested fixture 'fix_with_param' defined in:", "test_call_from_fixture.py:4", "Requested here:", "test_call_from_fixture.py:9", > "*1 error in*", ] ) E Failed: nomatch: 'The requested fixture has no parameter defined for test:' E and: '' E remains unmatched: 'The requested fixture has no parameter defined for test:' ../../../../pytest-3.10.1/testing/python/fixture.py:3630: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestParameterizedSubRequest.test_call_from_test ________________ self = testdir = def test_call_from_test(self, testdir): testdir.makepyfile( test_call_from_test=""" import pytest @pytest.fixture(params=[0, 1, 2]) def fix_with_param(request): return request.param def test_foo(request): request.getfixturevalue('fix_with_param') """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ "The requested fixture has no parameter defined for test:", " test_call_from_test.py::test_foo", "Requested fixture 'fix_with_param' defined in:", "test_call_from_test.py:4", "Requested here:", "test_call_from_test.py:8", > "*1 failed*", ] ) E Failed: nomatch: 'The requested fixture has no parameter defined for test:' E and: '' E remains unmatched: 'The requested fixture has no parameter defined for test:' ../../../../pytest-3.10.1/testing/python/fixture.py:3656: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestParameterizedSubRequest.test_external_fixture _______________ self = testdir = def test_external_fixture(self, testdir): testdir.makeconftest( """ import pytest @pytest.fixture(params=[0, 1, 2]) def fix_with_param(request): return request.param """ ) testdir.makepyfile( test_external_fixture=""" def test_foo(request): request.getfixturevalue('fix_with_param') """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ "The requested fixture has no parameter defined for test:", " test_external_fixture.py::test_foo", "", "Requested fixture 'fix_with_param' defined in:", "conftest.py:4", "Requested here:", "test_external_fixture.py:2", > "*1 failed*", ] ) E Failed: nomatch: 'The requested fixture has no parameter defined for test:' E and: '' E remains unmatched: 'The requested fixture has no parameter defined for test:' ../../../../pytest-3.10.1/testing/python/fixture.py:3687: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestParameterizedSubRequest.test_non_relative_path ______________ self = testdir = def test_non_relative_path(self, testdir): tests_dir = testdir.mkdir("tests") fixdir = testdir.mkdir("fixtures") fixfile = fixdir.join("fix.py") fixfile.write( textwrap.dedent( """\ import pytest @pytest.fixture(params=[0, 1, 2]) def fix_with_param(request): return request.param """ ) ) testfile = tests_dir.join("test_foos.py") testfile.write( textwrap.dedent( """\ from fix import fix_with_param def test_foo(request): request.getfixturevalue('fix_with_param') """ ) ) tests_dir.chdir() testdir.syspathinsert(fixdir) result = testdir.runpytest() result.stdout.fnmatch_lines( [ "The requested fixture has no parameter defined for test:", " test_foos.py::test_foo", "", "Requested fixture 'fix_with_param' defined in:", "*fix.py:4", "Requested here:", "test_foos.py:4", > "*1 failed*", ] ) E Failed: nomatch: 'The requested fixture has no parameter defined for test:' E and: '' E remains unmatched: 'The requested fixture has no parameter defined for test:' ../../../../../pytest-3.10.1/testing/python/fixture.py:3731: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ test_pytest_fixture_setup_and_post_finalizer_hook _______________ testdir = def test_pytest_fixture_setup_and_post_finalizer_hook(testdir): testdir.makeconftest( """ from __future__ import print_function def pytest_fixture_setup(fixturedef, request): print('ROOT setup hook called for {0} from {1}'.format(fixturedef.argname, request.node.name)) def pytest_fixture_post_finalizer(fixturedef, request): print('ROOT finalizer hook called for {0} from {1}'.format(fixturedef.argname, request.node.name)) """ ) testdir.makepyfile( **{ "tests/conftest.py": """ from __future__ import print_function def pytest_fixture_setup(fixturedef, request): print('TESTS setup hook called for {0} from {1}'.format(fixturedef.argname, request.node.name)) def pytest_fixture_post_finalizer(fixturedef, request): print('TESTS finalizer hook called for {0} from {1}'.format(fixturedef.argname, request.node.name)) """, "tests/test_hooks.py": """ from __future__ import print_function import pytest @pytest.fixture() def my_fixture(): return 'some' def test_func(my_fixture): print('TEST test_func') assert my_fixture == 'some' """, } ) result = testdir.runpytest("-s") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c614d3c50>.ret ../../../../pytest-3.10.1/testing/python/fixture.py:3770: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________ TestScopeOrdering.test_func_closure_module_auto[mark] _____________ self = testdir = variant = 'mark' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c63f63790> @pytest.mark.parametrize("variant", ["mark", "autouse"]) @pytest.mark.issue(github="#2405") def test_func_closure_module_auto(self, testdir, variant, monkeypatch): """Semantically identical to the example posted in #2405 when ``use_mark=True``""" monkeypatch.setenv("FIXTURE_ACTIVATION_VARIANT", variant) testdir.makepyfile( """ import warnings import os import pytest VAR = 'FIXTURE_ACTIVATION_VARIANT' VALID_VARS = ('autouse', 'mark') VARIANT = os.environ.get(VAR) if VARIANT is None or VARIANT not in VALID_VARS: warnings.warn("{!r} is not in {}, assuming autouse".format(VARIANT, VALID_VARS) ) variant = 'mark' @pytest.fixture(scope='module', autouse=VARIANT == 'autouse') def m1(): pass if VARIANT=='mark': pytestmark = pytest.mark.usefixtures('m1') @pytest.fixture(scope='function', autouse=True) def f1(): pass def test_func(m1): pass """ ) > items, _ = testdir.inline_genitems() ../../../../pytest-3.10.1/testing/python/fixture.py:3816: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________ TestScopeOrdering.test_func_closure_module_auto[autouse] ___________ self = testdir = variant = 'autouse' monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c60c33050> @pytest.mark.parametrize("variant", ["mark", "autouse"]) @pytest.mark.issue(github="#2405") def test_func_closure_module_auto(self, testdir, variant, monkeypatch): """Semantically identical to the example posted in #2405 when ``use_mark=True``""" monkeypatch.setenv("FIXTURE_ACTIVATION_VARIANT", variant) testdir.makepyfile( """ import warnings import os import pytest VAR = 'FIXTURE_ACTIVATION_VARIANT' VALID_VARS = ('autouse', 'mark') VARIANT = os.environ.get(VAR) if VARIANT is None or VARIANT not in VALID_VARS: warnings.warn("{!r} is not in {}, assuming autouse".format(VARIANT, VALID_VARS) ) variant = 'mark' @pytest.fixture(scope='module', autouse=VARIANT == 'autouse') def m1(): pass if VARIANT=='mark': pytestmark = pytest.mark.usefixtures('m1') @pytest.fixture(scope='function', autouse=True) def f1(): pass def test_func(m1): pass """ ) > items, _ = testdir.inline_genitems() ../../../../pytest-3.10.1/testing/python/fixture.py:3816: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________ TestScopeOrdering.test_func_closure_with_native_fixtures ___________ self = testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c60e901d0> def test_func_closure_with_native_fixtures(self, testdir, monkeypatch): """Sanity check that verifies the order returned by the closures and the actual fixture execution order: The execution order may differ because of fixture inter-dependencies. """ monkeypatch.setattr(pytest, "FIXTURE_ORDER", [], raising=False) testdir.makepyfile( """ import pytest FIXTURE_ORDER = pytest.FIXTURE_ORDER @pytest.fixture(scope="session") def s1(): FIXTURE_ORDER.append('s1') @pytest.fixture(scope="package") def p1(): FIXTURE_ORDER.append('p1') @pytest.fixture(scope="module") def m1(): FIXTURE_ORDER.append('m1') @pytest.fixture(scope='session') def my_tmpdir_factory(): FIXTURE_ORDER.append('my_tmpdir_factory') @pytest.fixture def my_tmpdir(my_tmpdir_factory): FIXTURE_ORDER.append('my_tmpdir') @pytest.fixture def f1(my_tmpdir): FIXTURE_ORDER.append('f1') @pytest.fixture def f2(): FIXTURE_ORDER.append('f2') def test_foo(f1, p1, m1, f2, s1): pass """ ) > items, _ = testdir.inline_genitems() ../../../../pytest-3.10.1/testing/python/fixture.py:3862: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________ TestScopeOrdering.test_func_closure_module __________________ self = testdir = def test_func_closure_module(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope='module') def m1(): pass @pytest.fixture(scope='function') def f1(): pass def test_func(f1, m1): pass """ ) > items, _ = testdir.inline_genitems() ../../../../pytest-3.10.1/testing/python/fixture.py:3889: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________ TestScopeOrdering.test_func_closure_scopes_reordered _____________ self = testdir = def test_func_closure_scopes_reordered(self, testdir): """Test ensures that fixtures are ordered by scope regardless of the order of the parameters, although fixtures of same scope keep the declared order """ testdir.makepyfile( """ import pytest @pytest.fixture(scope='session') def s1(): pass @pytest.fixture(scope='module') def m1(): pass @pytest.fixture(scope='function') def f1(): pass @pytest.fixture(scope='function') def f2(): pass class Test: @pytest.fixture(scope='class') def c1(cls): pass def test_func(self, f2, f1, c1, m1, s1): pass """ ) > items, _ = testdir.inline_genitems() ../../../../pytest-3.10.1/testing/python/fixture.py:3922: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______ TestScopeOrdering.test_func_closure_same_scope_closer_root_first _______ self = testdir = def test_func_closure_same_scope_closer_root_first(self, testdir): """Auto-use fixtures of same scope are ordered by closer-to-root first""" testdir.makeconftest( """ import pytest @pytest.fixture(scope='module', autouse=True) def m_conf(): pass """ ) testdir.makepyfile( **{ "sub/conftest.py": """ import pytest @pytest.fixture(scope='package', autouse=True) def p_sub(): pass @pytest.fixture(scope='module', autouse=True) def m_sub(): pass """, "sub/__init__.py": "", "sub/test_func.py": """ import pytest @pytest.fixture(scope='module', autouse=True) def m_test(): pass @pytest.fixture(scope='function') def f1(): pass def test_func(m_test, f1): pass """, } ) > items, _ = testdir.inline_genitems() ../../../../pytest-3.10.1/testing/python/fixture.py:3962: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________ TestScopeOrdering.test_func_closure_all_scopes_complex ____________ self = testdir = def test_func_closure_all_scopes_complex(self, testdir): """Complex test involving all scopes and mixing autouse with normal fixtures""" testdir.makeconftest( """ import pytest @pytest.fixture(scope='session') def s1(): pass @pytest.fixture(scope='package', autouse=True) def p1(): pass """ ) testdir.makepyfile(**{"__init__.py": ""}) testdir.makepyfile( """ import pytest @pytest.fixture(scope='module', autouse=True) def m1(): pass @pytest.fixture(scope='module') def m2(s1): pass @pytest.fixture(scope='function') def f1(): pass @pytest.fixture(scope='function') def f2(): pass class Test: @pytest.fixture(scope='class', autouse=True) def c1(self): pass def test_func(self, f2, f1, m2): pass """ ) > items, _ = testdir.inline_genitems() ../../../../pytest-3.10.1/testing/python/fixture.py:4006: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:796: in inline_genitems rec = self.inline_run("--collect-only", *args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestScopeOrdering.test_multiple_packages ___________________ self = testdir = def test_multiple_packages(self, testdir): """Complex test involving multiple package fixtures. Make sure teardowns are executed in order. . └── root ├── __init__.py ├── sub1 │ ├── __init__.py │ ├── conftest.py │ └── test_1.py └── sub2 ├── __init__.py ├── conftest.py └── test_2.py """ root = testdir.mkdir("root") root.join("__init__.py").write("values = []") sub1 = root.mkdir("sub1") sub1.ensure("__init__.py") sub1.join("conftest.py").write( textwrap.dedent( """\ import pytest from .. import values @pytest.fixture(scope="package") def fix(): values.append("pre-sub1") yield values assert values.pop() == "pre-sub1" """ ) ) sub1.join("test_1.py").write( textwrap.dedent( """\ from .. import values def test_1(fix): assert values == ["pre-sub1"] """ ) ) sub2 = root.mkdir("sub2") sub2.ensure("__init__.py") sub2.join("conftest.py").write( textwrap.dedent( """\ import pytest from .. import values @pytest.fixture(scope="package") def fix(): values.append("pre-sub2") yield values assert values.pop() == "pre-sub2" """ ) ) sub2.join("test_2.py").write( textwrap.dedent( """\ from .. import values def test_2(fix): assert values == ["pre-sub2"] """ ) ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/fixture.py:4075: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestOEJSKITSpecials.test_funcarg_non_pycollectobj _______________ self = testdir = def test_funcarg_non_pycollectobj(self, testdir): # rough jstests usage testdir.makeconftest( """ import pytest def pytest_pycollect_makeitem(collector, name, obj): if name == "MyClass": return MyCollector(name, parent=collector) class MyCollector(pytest.Collector): def reportinfo(self): return self.fspath, 3, "xyz" """ ) modcol = testdir.getmodulecol( """ import pytest @pytest.fixture def arg1(request): return 42 class MyClass(object): pass > """ ) ../../../../pytest-3.10.1/testing/python/integration.py:27: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________________ TestOEJSKITSpecials.test_autouse_fixture ___________________ self = testdir = def test_autouse_fixture(self, testdir): # rough jstests usage testdir.makeconftest( """ import pytest def pytest_pycollect_makeitem(collector, name, obj): if name == "MyClass": return MyCollector(name, parent=collector) class MyCollector(pytest.Collector): def reportinfo(self): return self.fspath, 3, "xyz" """ ) modcol = testdir.getmodulecol( """ import pytest @pytest.fixture(autouse=True) def hello(): pass @pytest.fixture def arg1(request): return 42 class MyClass(object): pass > """ ) ../../../../pytest-3.10.1/testing/python/integration.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ____________________ TestMockDecoration.test_unittest_mock _____________________ self = testdir = def test_unittest_mock(self, testdir): pytest.importorskip("unittest.mock") testdir.makepyfile( """ import unittest.mock class T(unittest.TestCase): @unittest.mock.patch("os.path.abspath") def test_hello(self, abspath): import os os.path.abspath("hello") abspath.assert_any_call("hello") """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/integration.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestMockDecoration.test_unittest_mock_and_fixture _______________ self = testdir = def test_unittest_mock_and_fixture(self, testdir): pytest.importorskip("unittest.mock") testdir.makepyfile( """ import os.path import unittest.mock import pytest @pytest.fixture def inject_me(): pass @unittest.mock.patch.object(os.path, "abspath", new=unittest.mock.MagicMock) def test_hello(inject_me): import os os.path.abspath("hello") """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/integration.py:163: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning __________________________ TestReRunTests.test_rerun ___________________________ self = testdir = def test_rerun(self, testdir): testdir.makeconftest( """ from _pytest.runner import runtestprotocol def pytest_runtest_protocol(item, nextitem): runtestprotocol(item, log=False, nextitem=nextitem) runtestprotocol(item, log=True, nextitem=nextitem) """ ) testdir.makepyfile( """ import pytest count = 0 req = None @pytest.fixture def fix(request): global count, req assert request != req req = request print ("fix count %s" % count) count += 1 def test_fix(fix): pass """ ) result = testdir.runpytest("-s") result.stdout.fnmatch_lines( """ *fix count 0* *fix count 1* > """ ) E Failed: nomatch: '*fix count 0*' E and: '' E remains unmatched: '*fix count 0*' ../../../../pytest-3.10.1/testing/python/integration.py:297: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________ TestNoselikeTestAttribute.test_module_with_global_test ____________ self = testdir = def test_module_with_global_test(self, testdir): testdir.makepyfile( """ __test__ = False def test_hello(): pass """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/integration.py:321: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________ TestNoselikeTestAttribute.test_class_and_method ________________ self = testdir = def test_class_and_method(self, testdir): testdir.makepyfile( """ __test__ = True def test_func(): pass test_func.__test__ = False class TestSome(object): __test__ = False def test_method(self): pass """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/integration.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ TestNoselikeTestAttribute.test_unittest_class _________________ self = testdir = def test_unittest_class(self, testdir): testdir.makepyfile( """ import unittest class TC(unittest.TestCase): def test_1(self): pass class TC2(unittest.TestCase): __test__ = False def test_2(self): pass """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/integration.py:358: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________ TestNoselikeTestAttribute.test_class_with_nasty_getattr ____________ self = testdir = def test_class_with_nasty_getattr(self, testdir): """Make sure we handle classes with a custom nasty __getattr__ right. With a custom __getattr__ which e.g. returns a function (like with a RPC wrapper), we shouldn't assume this meant "__test__ = True". """ # https://github.com/pytest-dev/pytest/issues/1204 testdir.makepyfile( """ class MetaModel(type): def __getattr__(cls, key): return lambda: None BaseModel = MetaModel('Model', (), {}) class Model(BaseModel): __metaclass__ = MetaModel def test_blah(self): pass """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/integration.py:390: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________________ TestParameterize.test_idfn_marker _______________________ self = testdir = def test_idfn_marker(self, testdir): testdir.makepyfile( """ import pytest def idfn(param): if param == 0: return 'spam' elif param == 1: return 'ham' else: return None @pytest.mark.parametrize('a,b', [(0, 2), (1, 2)], ids=idfn) def test_params(a, b): pass """ ) res = testdir.runpytest("--collect-only") > res.stdout.fnmatch_lines(["*spam-2*", "*ham-2*"]) E Failed: nomatch: '*spam-2*' E and: '' E remains unmatched: '*spam-2*' ../../../../pytest-3.10.1/testing/python/integration.py:417: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ TestParameterize.test_idfn_fixture ______________________ self = testdir = def test_idfn_fixture(self, testdir): testdir.makepyfile( """ import pytest def idfn(param): if param == 0: return 'spam' elif param == 1: return 'ham' else: return None @pytest.fixture(params=[0, 1], ids=idfn) def a(request): return request.param @pytest.fixture(params=[1, 2], ids=idfn) def b(request): return request.param def test_params(a, b): pass """ ) res = testdir.runpytest("--collect-only") > res.stdout.fnmatch_lines(["*spam-2*", "*ham-2*"]) E Failed: nomatch: '*spam-2*' E and: '' E remains unmatched: '*spam-2*' ../../../../pytest-3.10.1/testing/python/integration.py:445: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________ TestMetafunc.test_parametrize_indirect_list_functional ____________ self = testdir = @pytest.mark.issue714 def test_parametrize_indirect_list_functional(self, testdir): """ Test parametrization with 'indirect' parameter applied on particular arguments. As y is is direct, its value should be used directly rather than being passed to the fixture y. :param testdir: the instance of Testdir class, a temporary test directory. """ testdir.makepyfile( """ import pytest @pytest.fixture(scope='function') def x(request): return request.param * 3 @pytest.fixture(scope='function') def y(request): return request.param * 2 @pytest.mark.parametrize('x, y', [('a', 'b')], indirect=['x']) def test_simple(x,y): assert len(x) == 3 assert len(y) == 1 """ ) result = testdir.runpytest("-v") > result.stdout.fnmatch_lines(["*test_simple*a-b*", "*1 passed*"]) E Failed: nomatch: '*test_simple*a-b*' E and: '' E remains unmatched: '*test_simple*a-b*' ../../../../pytest-3.10.1/testing/python/metafunc.py:568: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______ TestMetafunc.test_parametrize_uses_no_fixture_error_indirect_false ______ self = testdir = @pytest.mark.issue714 def test_parametrize_uses_no_fixture_error_indirect_false(self, testdir): """The 'uses no fixture' error tells the user at collection time that the parametrize data they've set up doesn't correspond to the fixtures in their test function, rather than silently ignoring this and letting the test potentially pass. """ testdir.makepyfile( """ import pytest @pytest.mark.parametrize('x, y', [('a', 'b')], indirect=False) def test_simple(x): assert len(x) == 3 """ ) result = testdir.runpytest("--collect-only") > result.stdout.fnmatch_lines(["*uses no argument 'y'*"]) E Failed: nomatch: "*uses no argument 'y'*" E and: '' E remains unmatched: "*uses no argument 'y'*" ../../../../pytest-3.10.1/testing/python/metafunc.py:596: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______ TestMetafunc.test_parametrize_uses_no_fixture_error_indirect_true _______ self = testdir = @pytest.mark.issue714 def test_parametrize_uses_no_fixture_error_indirect_true(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope='function') def x(request): return request.param * 3 @pytest.fixture(scope='function') def y(request): return request.param * 2 @pytest.mark.parametrize('x, y', [('a', 'b')], indirect=True) def test_simple(x): assert len(x) == 3 """ ) result = testdir.runpytest("--collect-only") > result.stdout.fnmatch_lines(["*uses no fixture 'y'*"]) E Failed: nomatch: "*uses no fixture 'y'*" E and: '' E remains unmatched: "*uses no fixture 'y'*" ../../../../pytest-3.10.1/testing/python/metafunc.py:616: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _ TestMetafunc.test_parametrize_indirect_uses_no_fixture_error_indirect_string _ self = testdir = @pytest.mark.issue714 def test_parametrize_indirect_uses_no_fixture_error_indirect_string(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope='function') def x(request): return request.param * 3 @pytest.mark.parametrize('x, y', [('a', 'b')], indirect='y') def test_simple(x): assert len(x) == 3 """ ) result = testdir.runpytest("--collect-only") > result.stdout.fnmatch_lines(["*uses no fixture 'y'*"]) E Failed: nomatch: "*uses no fixture 'y'*" E and: '' E remains unmatched: "*uses no fixture 'y'*" ../../../../pytest-3.10.1/testing/python/metafunc.py:633: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __ TestMetafunc.test_parametrize_indirect_uses_no_fixture_error_indirect_list __ self = testdir = @pytest.mark.issue714 def test_parametrize_indirect_uses_no_fixture_error_indirect_list(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope='function') def x(request): return request.param * 3 @pytest.mark.parametrize('x, y', [('a', 'b')], indirect=['y']) def test_simple(x): assert len(x) == 3 """ ) result = testdir.runpytest("--collect-only") > result.stdout.fnmatch_lines(["*uses no fixture 'y'*"]) E Failed: nomatch: "*uses no fixture 'y'*" E and: '' E remains unmatched: "*uses no fixture 'y'*" ../../../../pytest-3.10.1/testing/python/metafunc.py:650: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________ TestMetafunc.test_parametrize_argument_not_in_indirect_list __________ self = testdir = @pytest.mark.issue714 def test_parametrize_argument_not_in_indirect_list(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope='function') def x(request): return request.param * 3 @pytest.mark.parametrize('x, y', [('a', 'b')], indirect=['x']) def test_simple(x): assert len(x) == 3 """ ) result = testdir.runpytest("--collect-only") > result.stdout.fnmatch_lines(["*uses no argument 'y'*"]) E Failed: nomatch: "*uses no argument 'y'*" E and: '' E remains unmatched: "*uses no argument 'y'*" ../../../../pytest-3.10.1/testing/python/metafunc.py:667: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) TestMetafunc.test_parametrize_gives_indicative_error_on_function_with_default_argument self = testdir = def test_parametrize_gives_indicative_error_on_function_with_default_argument( self, testdir ): testdir.makepyfile( """ import pytest @pytest.mark.parametrize('x, y', [('a', 'b')]) def test_simple(x, y=1): assert len(x) == 1 """ ) result = testdir.runpytest("--collect-only") result.stdout.fnmatch_lines( > ["*already takes an argument 'y' with a default value"] ) E Failed: nomatch: "*already takes an argument 'y' with a default value" E and: '' E remains unmatched: "*already takes an argument 'y' with a default value" ../../../../pytest-3.10.1/testing/python/metafunc.py:683: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ TestMetafunc.test_parametrize_functional ___________________ self = testdir = def test_parametrize_functional(self, testdir): testdir.makepyfile( """ import pytest def pytest_generate_tests(metafunc): metafunc.parametrize('x', [1,2], indirect=True) metafunc.parametrize('y', [2]) @pytest.fixture def x(request): return request.param * 10 def test_simple(x,y): assert x in (10,20) assert y == 2 """ ) result = testdir.runpytest("-v") result.stdout.fnmatch_lines( > ["*test_simple*1-2*", "*test_simple*2-2*", "*2 passed*"] ) E Failed: nomatch: '*test_simple*1-2*' E and: '' E remains unmatched: '*test_simple*1-2*' ../../../../pytest-3.10.1/testing/python/metafunc.py:718: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestMetafunc.test_parametrize_multiple_times _________________ self = testdir = def test_parametrize_multiple_times(self, testdir): testdir.makepyfile( """ import pytest pytestmark = pytest.mark.parametrize("x", [1,2]) def test_func(x): assert 0, x class TestClass(object): pytestmark = pytest.mark.parametrize("y", [3,4]) def test_meth(self, x, y): assert 0, x """ ) result = testdir.runpytest() > assert result.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c648c7810>.ret ../../../../pytest-3.10.1/testing/python/metafunc.py:761: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________ TestMetafunc.test_parametrize_CSV _______________________ self = testdir = def test_parametrize_CSV(self, testdir): testdir.makepyfile( """ import pytest @pytest.mark.parametrize("x, y,", [(1,2), (2,3)]) def test_func(x, y): assert x+1 == y """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/metafunc.py:773: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________________ TestMetafunc.test_parametrize_class_scenarios _________________ self = testdir = def test_parametrize_class_scenarios(self, testdir): testdir.makepyfile( """ # same as doc/en/example/parametrize scenario example def pytest_generate_tests(metafunc): idlist = [] argvalues = [] for scenario in metafunc.cls.scenarios: idlist.append(scenario[0]) items = scenario[1].items() argnames = [x[0] for x in items] argvalues.append(([x[1] for x in items])) metafunc.parametrize(argnames, argvalues, ids=idlist, scope="class") class Test(object): scenarios = [['1', {'arg': {1: 2}, "arg2": "value2"}], ['2', {'arg':'value2', "arg2": "value2"}]] def test_1(self, arg, arg2): pass def test_2(self, arg2, arg): pass def test_3(self, arg, arg2): pass """ ) result = testdir.runpytest("-v") > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c637eac90>.ret ../../../../pytest-3.10.1/testing/python/metafunc.py:805: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ TestMetafuncFunctional.test_attributes ____________________ self = testdir = def test_attributes(self, testdir): p = testdir.makepyfile( """ # assumes that generate/provide runs in the same process import sys, pytest, six def pytest_generate_tests(metafunc): metafunc.addcall(param=metafunc) @pytest.fixture def metafunc(request): assert request._pyfuncitem._genid == "0" return request.param def test_function(metafunc, pytestconfig): assert metafunc.config == pytestconfig assert metafunc.module.__name__ == __name__ assert metafunc.function == test_function assert metafunc.cls is None class TestClass(object): def test_method(self, metafunc, pytestconfig): assert metafunc.config == pytestconfig assert metafunc.module.__name__ == __name__ unbound = six.get_unbound_function(TestClass.test_method) assert metafunc.function == unbound assert metafunc.cls == TestClass """ ) result = testdir.runpytest(p, "-v") > result.assert_outcomes(passed=2) ../../../../pytest-3.10.1/testing/python/metafunc.py:870: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c60eba110> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______ TestMetafuncFunctional.test_addcall_with_two_funcargs_generators _______ self = testdir = def test_addcall_with_two_funcargs_generators(self, testdir): testdir.makeconftest( """ def pytest_generate_tests(metafunc): assert "arg1" in metafunc.fixturenames metafunc.addcall(funcargs=dict(arg1=1, arg2=2)) """ ) p = testdir.makepyfile( """ def pytest_generate_tests(metafunc): metafunc.addcall(funcargs=dict(arg1=1, arg2=1)) class TestClass(object): def test_myfunc(self, arg1, arg2): assert arg1 == arg2 """ ) result = testdir.runpytest("-v", p) result.stdout.fnmatch_lines( > ["*test_myfunc*0*PASS*", "*test_myfunc*1*FAIL*", "*1 failed, 1 passed*"] ) E Failed: nomatch: '*test_myfunc*0*PASS*' E and: '' E remains unmatched: '*test_myfunc*0*PASS*' ../../../../pytest-3.10.1/testing/python/metafunc.py:892: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________ TestMetafuncFunctional.test_two_functions ___________________ self = testdir = def test_two_functions(self, testdir): p = testdir.makepyfile( """ def pytest_generate_tests(metafunc): metafunc.addcall(param=10) metafunc.addcall(param=20) import pytest @pytest.fixture def arg1(request): return request.param def test_func1(arg1): assert arg1 == 10 def test_func2(arg1): assert arg1 in (10, 20) """ ) result = testdir.runpytest("-v", p) result.stdout.fnmatch_lines( [ "*test_func1*0*PASS*", "*test_func1*1*FAIL*", "*test_func2*PASS*", > "*1 failed, 3 passed*", ] ) E Failed: nomatch: '*test_func1*0*PASS*' E and: '' E remains unmatched: '*test_func1*0*PASS*' ../../../../pytest-3.10.1/testing/python/metafunc.py:919: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ TestMetafuncFunctional.test_noself_in_method _________________ self = testdir = def test_noself_in_method(self, testdir): p = testdir.makepyfile( """ def pytest_generate_tests(metafunc): assert 'xyz' not in metafunc.fixturenames class TestHello(object): def test_hello(xyz): pass """ ) result = testdir.runpytest(p) > result.assert_outcomes(passed=1) ../../../../pytest-3.10.1/testing/python/metafunc.py:935: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c64188710> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________ TestMetafuncFunctional.test_generate_plugin_and_module ____________ self = testdir = def test_generate_plugin_and_module(self, testdir): testdir.makeconftest( """ def pytest_generate_tests(metafunc): assert "arg1" in metafunc.fixturenames metafunc.addcall(id="world", param=(2,100)) """ ) p = testdir.makepyfile( """ def pytest_generate_tests(metafunc): metafunc.addcall(param=(1,1), id="hello") import pytest @pytest.fixture def arg1(request): return request.param[0] @pytest.fixture def arg2(request): return request.param[1] class TestClass(object): def test_myfunc(self, arg1, arg2): assert arg1 == arg2 """ ) result = testdir.runpytest("-v", p) result.stdout.fnmatch_lines( [ "*test_myfunc*hello*PASS*", "*test_myfunc*world*FAIL*", > "*1 failed, 1 passed*", ] ) E Failed: nomatch: '*test_myfunc*hello*PASS*' E and: '' E remains unmatched: '*test_myfunc*hello*PASS*' ../../../../pytest-3.10.1/testing/python/metafunc.py:968: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestMetafuncFunctional.test_generate_tests_in_class ______________ self = testdir = def test_generate_tests_in_class(self, testdir): p = testdir.makepyfile( """ class TestClass(object): def pytest_generate_tests(self, metafunc): metafunc.addcall(funcargs={'hello': 'world'}, id="hello") def test_myfunc(self, hello): assert hello == "world" """ ) result = testdir.runpytest("-v", p) > result.stdout.fnmatch_lines(["*test_myfunc*hello*PASS*", "*1 passed*"]) E Failed: nomatch: '*test_myfunc*hello*PASS*' E and: '' E remains unmatched: '*test_myfunc*hello*PASS*' ../../../../pytest-3.10.1/testing/python/metafunc.py:984: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________ TestMetafuncFunctional.test_two_functions_not_same_instance __________ self = testdir = def test_two_functions_not_same_instance(self, testdir): p = testdir.makepyfile( """ def pytest_generate_tests(metafunc): metafunc.addcall({'arg1': 10}) metafunc.addcall({'arg1': 20}) class TestClass(object): def test_func(self, arg1): assert not hasattr(self, 'x') self.x = 1 """ ) result = testdir.runpytest("-v", p) result.stdout.fnmatch_lines( > ["*test_func*0*PASS*", "*test_func*1*PASS*", "*2 pass*"] ) E Failed: nomatch: '*test_func*0*PASS*' E and: '' E remains unmatched: '*test_func*0*PASS*' ../../../../pytest-3.10.1/testing/python/metafunc.py:1001: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______ TestMetafuncFunctional.test_issue28_setup_method_in_generate_tests ______ self = testdir = def test_issue28_setup_method_in_generate_tests(self, testdir): p = testdir.makepyfile( """ def pytest_generate_tests(metafunc): metafunc.addcall({'arg1': 1}) class TestClass(object): def test_method(self, arg1): assert arg1 == self.val def setup_method(self, func): self.val = 1 """ ) result = testdir.runpytest(p) > result.assert_outcomes(passed=1) ../../../../pytest-3.10.1/testing/python/metafunc.py:1018: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c610d65d0> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestMetafuncFunctional.test_parametrize_functional2 ______________ self = testdir = def test_parametrize_functional2(self, testdir): testdir.makepyfile( """ def pytest_generate_tests(metafunc): metafunc.parametrize("arg1", [1,2]) metafunc.parametrize("arg2", [4,5]) def test_hello(arg1, arg2): assert 0, (arg1, arg2) """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( > ["*(1, 4)*", "*(1, 5)*", "*(2, 4)*", "*(2, 5)*", "*4 failed*"] ) E Failed: nomatch: '*(1, 4)*' E and: '' E remains unmatched: '*(1, 4)*' ../../../../pytest-3.10.1/testing/python/metafunc.py:1032: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______ TestMetafuncFunctional.test_parametrize_and_inner_getfixturevalue _______ self = testdir = def test_parametrize_and_inner_getfixturevalue(self, testdir): p = testdir.makepyfile( """ def pytest_generate_tests(metafunc): metafunc.parametrize("arg1", [1], indirect=True) metafunc.parametrize("arg2", [10], indirect=True) import pytest @pytest.fixture def arg1(request): x = request.getfixturevalue("arg2") return x + request.param @pytest.fixture def arg2(request): return request.param def test_func1(arg1, arg2): assert arg1 == 11 """ ) result = testdir.runpytest("-v", p) > result.stdout.fnmatch_lines(["*test_func1*1*PASS*", "*1 passed*"]) E Failed: nomatch: '*test_func1*1*PASS*' E and: '' E remains unmatched: '*test_func1*1*PASS*' ../../../../pytest-3.10.1/testing/python/metafunc.py:1057: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestMetafuncFunctional.test_parametrize_on_setup_arg _____________ self = testdir = def test_parametrize_on_setup_arg(self, testdir): p = testdir.makepyfile( """ def pytest_generate_tests(metafunc): assert "arg1" in metafunc.fixturenames metafunc.parametrize("arg1", [1], indirect=True) import pytest @pytest.fixture def arg1(request): return request.param @pytest.fixture def arg2(request, arg1): return 10 * arg1 def test_func(arg2): assert arg2 == 10 """ ) result = testdir.runpytest("-v", p) > result.stdout.fnmatch_lines(["*test_func*1*PASS*", "*1 passed*"]) E Failed: nomatch: '*test_func*1*PASS*' E and: '' E remains unmatched: '*test_func*1*PASS*' ../../../../pytest-3.10.1/testing/python/metafunc.py:1080: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestMetafuncFunctional.test_parametrize_with_ids _______________ self = testdir = def test_parametrize_with_ids(self, testdir): testdir.makeini( """ [pytest] console_output_style=classic """ ) testdir.makepyfile( """ import pytest def pytest_generate_tests(metafunc): metafunc.parametrize(("a", "b"), [(1,1), (1,2)], ids=["basic", "advanced"]) def test_function(a, b): assert a == b """ ) result = testdir.runpytest("-v") > assert result.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c611591d0>.ret ../../../../pytest-3.10.1/testing/python/metafunc.py:1101: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestMetafuncFunctional.test_parametrize_without_ids ______________ self = testdir = def test_parametrize_without_ids(self, testdir): testdir.makepyfile( """ import pytest def pytest_generate_tests(metafunc): metafunc.parametrize(("a", "b"), [(1,object()), (1.3,object())]) def test_function(a, b): assert 1 """ ) result = testdir.runpytest("-v") result.stdout.fnmatch_lines( """ *test_function*1-b0* *test_function*1.3-b1* > """ ) E Failed: nomatch: '*test_function*1-b0*' E and: '' E remains unmatched: '*test_function*1-b0*' ../../../../pytest-3.10.1/testing/python/metafunc.py:1123: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________ TestMetafuncFunctional.test_parametrize_with_None_in_ids ___________ self = testdir = def test_parametrize_with_None_in_ids(self, testdir): testdir.makepyfile( """ import pytest def pytest_generate_tests(metafunc): metafunc.parametrize(("a", "b"), [(1,1), (1,1), (1,2)], ids=["basic", None, "advanced"]) def test_function(a, b): assert a == b """ ) result = testdir.runpytest("-v") > assert result.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c610cf490>.ret ../../../../pytest-3.10.1/testing/python/metafunc.py:1139: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________ TestMetafuncFunctional.test_fixture_parametrized_empty_ids __________ self = testdir = def test_fixture_parametrized_empty_ids(self, testdir): """Fixtures parametrized with empty ids cause an internal error (#1849).""" testdir.makepyfile( """ import pytest @pytest.fixture(scope="module", ids=[], params=[]) def temp(request): return request.param def test_temp(temp): pass """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["* 1 skipped *"]) E Failed: nomatch: '* 1 skipped *' E and: '' E remains unmatched: '* 1 skipped *' ../../../../pytest-3.10.1/testing/python/metafunc.py:1163: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________ TestMetafuncFunctional.test_parametrized_empty_ids ______________ self = testdir = def test_parametrized_empty_ids(self, testdir): """Tests parametrized with empty ids cause an internal error (#1849).""" testdir.makepyfile( """ import pytest @pytest.mark.parametrize('temp', [], ids=list()) def test_temp(temp): pass """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["* 1 skipped *"]) E Failed: nomatch: '* 1 skipped *' E and: '' E remains unmatched: '* 1 skipped *' ../../../../pytest-3.10.1/testing/python/metafunc.py:1177: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________ TestMetafuncFunctional.test_parametrized_ids_invalid_type ___________ self = testdir = def test_parametrized_ids_invalid_type(self, testdir): """Tests parametrized with ids as non-strings (#1857).""" testdir.makepyfile( """ import pytest @pytest.mark.parametrize("x, expected", [(10, 20), (40, 80)], ids=(None, 2)) def test_ids_numbers(x,expected): assert x * 2 == expected """ ) result = testdir.runpytest() result.stdout.fnmatch_lines( [ > "*In test_ids_numbers: ids must be list of strings, found: 2 (type: *'int'>)*" ] ) E Failed: nomatch: "*In test_ids_numbers: ids must be list of strings, found: 2 (type: *'int'>)*" E and: '' E remains unmatched: "*In test_ids_numbers: ids must be list of strings, found: 2 (type: *'int'>)*" ../../../../pytest-3.10.1/testing/python/metafunc.py:1193: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _ TestMetafuncFunctional.test_parametrize_with_identical_ids_get_unique_names __ self = testdir = def test_parametrize_with_identical_ids_get_unique_names(self, testdir): testdir.makepyfile( """ import pytest def pytest_generate_tests(metafunc): metafunc.parametrize(("a", "b"), [(1,1), (1,2)], ids=["a", "a"]) def test_function(a, b): assert a == b """ ) result = testdir.runpytest("-v") > assert result.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63caf850>.ret ../../../../pytest-3.10.1/testing/python/metafunc.py:1210: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______ TestMetafuncFunctional.test_parametrize_scope_overrides[module-2] _______ self = testdir = scope = 'module', length = 2 @pytest.mark.parametrize(("scope", "length"), [("module", 2), ("function", 4)]) def test_parametrize_scope_overrides(self, testdir, scope, length): testdir.makepyfile( """ import pytest values = [] def pytest_generate_tests(metafunc): if "arg" in metafunc.funcargnames: metafunc.parametrize("arg", [1,2], indirect=True, scope=%r) @pytest.fixture def arg(request): values.append(request.param) return request.param def test_hello(arg): assert arg in (1,2) def test_world(arg): assert arg in (1,2) def test_checklength(): assert len(values) == %d """ % (scope, length) ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/metafunc.py:1238: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____ TestMetafuncFunctional.test_parametrize_scope_overrides[function-4] ______ self = testdir = scope = 'function', length = 4 @pytest.mark.parametrize(("scope", "length"), [("module", 2), ("function", 4)]) def test_parametrize_scope_overrides(self, testdir, scope, length): testdir.makepyfile( """ import pytest values = [] def pytest_generate_tests(metafunc): if "arg" in metafunc.funcargnames: metafunc.parametrize("arg", [1,2], indirect=True, scope=%r) @pytest.fixture def arg(request): values.append(request.param) return request.param def test_hello(arg): assert arg in (1,2) def test_world(arg): assert arg in (1,2) def test_checklength(): assert len(values) == %d """ % (scope, length) ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/metafunc.py:1238: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________ TestMetafuncFunctional.test_parametrize_issue323 _______________ self = testdir = def test_parametrize_issue323(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope='module', params=range(966)) def foo(request): return request.param def test_it(foo): pass def test_it2(foo): pass """ ) > reprec = testdir.inline_run("--collect-only") ../../../../pytest-3.10.1/testing/python/metafunc.py:1256: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________ TestMetafuncFunctional.test_usefixtures_seen_in_generate_tests ________ self = testdir = def test_usefixtures_seen_in_generate_tests(self, testdir): testdir.makepyfile( """ import pytest def pytest_generate_tests(metafunc): assert "abc" in metafunc.fixturenames metafunc.parametrize("abc", [1]) @pytest.mark.usefixtures("abc") def test_function(): pass """ ) reprec = testdir.runpytest() > reprec.assert_outcomes(passed=1) ../../../../pytest-3.10.1/testing/python/metafunc.py:1273: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c610e3210> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________ TestMetafuncFunctional.test_generate_tests_only_done_in_subdir ________ self = testdir = def test_generate_tests_only_done_in_subdir(self, testdir): sub1 = testdir.mkpydir("sub1") sub2 = testdir.mkpydir("sub2") sub1.join("conftest.py").write( textwrap.dedent( """\ def pytest_generate_tests(metafunc): assert metafunc.function.__name__ == "test_1" """ ) ) sub2.join("conftest.py").write( textwrap.dedent( """\ def pytest_generate_tests(metafunc): assert metafunc.function.__name__ == "test_2" """ ) ) sub1.join("test_in_sub1.py").write("def test_1(): pass") sub2.join("test_in_sub2.py").write("def test_2(): pass") result = testdir.runpytest("--keep-duplicates", "-v", "-s", sub1, sub2, sub1) > result.assert_outcomes(passed=3) ../../../../pytest-3.10.1/testing/python/metafunc.py:1297: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c64935590> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______ TestMetafuncFunctional.test_generate_same_function_names_issue403 _______ self = testdir = def test_generate_same_function_names_issue403(self, testdir): testdir.makepyfile( """ import pytest def make_tests(): @pytest.mark.parametrize("x", range(2)) def test_foo(x): pass return test_foo test_x = make_tests() test_y = make_tests() """ ) reprec = testdir.runpytest() > reprec.assert_outcomes(passed=4) ../../../../pytest-3.10.1/testing/python/metafunc.py:1315: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:427: in assert_outcomes d = self.parseoutcomes() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_pytest.pytester.RunResult object at 0x7f5c612159d0> def parseoutcomes(self): """Return a dictionary of outcomestring->num from parsing the terminal output that the test process produced. """ for line in reversed(self.outlines): if "seconds" in line: outcomes = rex_outcome.findall(line) if outcomes: d = {} for num, cat in outcomes: d[cat] = int(num) return d > raise ValueError("Pytest terminal report not found") E ValueError: Pytest terminal report not found ../../../../pytest-3.10.1/src/_pytest/pytester.py:418: ValueError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______ TestMetafuncFunctional.test_parametrize_misspelling[parametrise] _______ self = testdir = attr = 'parametrise' @pytest.mark.issue463 @pytest.mark.parametrize("attr", ["parametrise", "parameterize", "parameterise"]) def test_parametrize_misspelling(self, testdir, attr): testdir.makepyfile( """ import pytest @pytest.mark.{}("x", range(2)) def test_foo(x): pass """.format( attr ) ) result = testdir.runpytest("--collectonly") result.stdout.fnmatch_lines( [ "test_foo has '{}' mark, spelling should be 'parametrize'".format(attr), > "*1 error in*", ] ) E Failed: nomatch: "test_foo has 'parametrise' mark, spelling should be 'parametrize'" E and: '' E remains unmatched: "test_foo has 'parametrise' mark, spelling should be 'parametrize'" ../../../../pytest-3.10.1/testing/python/metafunc.py:1335: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______ TestMetafuncFunctional.test_parametrize_misspelling[parameterize] _______ self = testdir = attr = 'parameterize' @pytest.mark.issue463 @pytest.mark.parametrize("attr", ["parametrise", "parameterize", "parameterise"]) def test_parametrize_misspelling(self, testdir, attr): testdir.makepyfile( """ import pytest @pytest.mark.{}("x", range(2)) def test_foo(x): pass """.format( attr ) ) result = testdir.runpytest("--collectonly") result.stdout.fnmatch_lines( [ "test_foo has '{}' mark, spelling should be 'parametrize'".format(attr), > "*1 error in*", ] ) E Failed: nomatch: "test_foo has 'parameterize' mark, spelling should be 'parametrize'" E and: '' E remains unmatched: "test_foo has 'parameterize' mark, spelling should be 'parametrize'" ../../../../pytest-3.10.1/testing/python/metafunc.py:1335: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______ TestMetafuncFunctional.test_parametrize_misspelling[parameterise] _______ self = testdir = attr = 'parameterise' @pytest.mark.issue463 @pytest.mark.parametrize("attr", ["parametrise", "parameterize", "parameterise"]) def test_parametrize_misspelling(self, testdir, attr): testdir.makepyfile( """ import pytest @pytest.mark.{}("x", range(2)) def test_foo(x): pass """.format( attr ) ) result = testdir.runpytest("--collectonly") result.stdout.fnmatch_lines( [ "test_foo has '{}' mark, spelling should be 'parametrize'".format(attr), > "*1 error in*", ] ) E Failed: nomatch: "test_foo has 'parameterise' mark, spelling should be 'parametrize'" E and: '' E remains unmatched: "test_foo has 'parameterise' mark, spelling should be 'parametrize'" ../../../../pytest-3.10.1/testing/python/metafunc.py:1335: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________ TestMetafuncFunctionalAuto.test_parametrize_auto_scope ____________ self = testdir = def test_parametrize_auto_scope(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope='session', autouse=True) def fixture(): return 1 @pytest.mark.parametrize('animal', ["dog", "cat"]) def test_1(animal): assert animal in ('dog', 'cat') @pytest.mark.parametrize('animal', ['fish']) def test_2(animal): assert animal == 'fish' """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["* 3 passed *"]) E Failed: nomatch: '* 3 passed *' E and: '' E remains unmatched: '* 3 passed *' ../../../../pytest-3.10.1/testing/python/metafunc.py:1365: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______ TestMetafuncFunctionalAuto.test_parametrize_auto_scope_indirect ________ self = testdir = def test_parametrize_auto_scope_indirect(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope='session') def echo(request): return request.param @pytest.mark.parametrize('animal, echo', [("dog", 1), ("cat", 2)], indirect=['echo']) def test_1(animal, echo): assert animal in ('dog', 'cat') assert echo in (1, 2, 3) @pytest.mark.parametrize('animal, echo', [('fish', 3)], indirect=['echo']) def test_2(animal, echo): assert animal == 'fish' assert echo in (1, 2, 3) """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["* 3 passed *"]) E Failed: nomatch: '* 3 passed *' E and: '' E remains unmatched: '* 3 passed *' ../../../../pytest-3.10.1/testing/python/metafunc.py:1388: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___ TestMetafuncFunctionalAuto.test_parametrize_auto_scope_override_fixture ____ self = testdir = def test_parametrize_auto_scope_override_fixture(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope='session', autouse=True) def animal(): return 'fox' @pytest.mark.parametrize('animal', ["dog", "cat"]) def test_1(animal): assert animal in ('dog', 'cat') """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["* 2 passed *"]) E Failed: nomatch: '* 2 passed *' E and: '' E remains unmatched: '* 2 passed *' ../../../../pytest-3.10.1/testing/python/metafunc.py:1405: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________ TestMetafuncFunctionalAuto.test_parametrize_all_indirects ___________ self = testdir = def test_parametrize_all_indirects(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture() def animal(request): return request.param @pytest.fixture(scope='session') def echo(request): return request.param @pytest.mark.parametrize('animal, echo', [("dog", 1), ("cat", 2)], indirect=True) def test_1(animal, echo): assert animal in ('dog', 'cat') assert echo in (1, 2, 3) @pytest.mark.parametrize('animal, echo', [("fish", 3)], indirect=True) def test_2(animal, echo): assert animal == 'fish' assert echo in (1, 2, 3) """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["* 3 passed *"]) E Failed: nomatch: '* 3 passed *' E and: '' E remains unmatched: '* 3 passed *' ../../../../pytest-3.10.1/testing/python/metafunc.py:1432: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____ TestMetafuncFunctionalAuto.test_parametrize_some_arguments_auto_scope _____ self = testdir = monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5c60c60190> def test_parametrize_some_arguments_auto_scope(self, testdir, monkeypatch): """Integration test for (#3941)""" class_fix_setup = [] monkeypatch.setattr(sys, "class_fix_setup", class_fix_setup, raising=False) func_fix_setup = [] monkeypatch.setattr(sys, "func_fix_setup", func_fix_setup, raising=False) testdir.makepyfile( """ import pytest import sys @pytest.fixture(scope='class', autouse=True) def class_fix(request): sys.class_fix_setup.append(request.param) @pytest.fixture(autouse=True) def func_fix(): sys.func_fix_setup.append(True) @pytest.mark.parametrize('class_fix', [10, 20], indirect=True) class Test: def test_foo(self): pass def test_bar(self): pass """ ) result = testdir.runpytest_inprocess() > result.stdout.fnmatch_lines(["* 4 passed in *"]) E Failed: nomatch: '* 4 passed in *' E and: '' E remains unmatched: '* 4 passed in *' ../../../../pytest-3.10.1/testing/python/metafunc.py:1463: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ TestMetafuncFunctionalAuto.test_parametrize_issue634 _____________ self = testdir = def test_parametrize_issue634(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture(scope='module') def foo(request): print('preparing foo-%d' % request.param) return 'foo-%d' % request.param def test_one(foo): pass def test_two(foo): pass test_two.test_with = (2, 3) def pytest_generate_tests(metafunc): params = (1, 2, 3, 4) if not 'foo' in metafunc.fixturenames: return test_with = getattr(metafunc.function, 'test_with', None) if test_with: params = test_with metafunc.parametrize('foo', params, indirect=True) """ ) result = testdir.runpytest("-s") output = result.stdout.str() > assert output.count("preparing foo-2") == 1 E AssertionError: assert 0 == 1 E + where 0 = ('preparing foo-2') E + where = ''.count ../../../../pytest-3.10.1/testing/python/metafunc.py:1498: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ TestMarkersWithParametrization.test_simple_mark ________________ self = testdir = def test_simple_mark(self, testdir): s = """ import pytest @pytest.mark.foo @pytest.mark.parametrize(("n", "expected"), [ (1, 2), pytest.mark.bar((1, 3)), (2, 3), ]) def test_increment(n, expected): assert n + 1 == expected """ > items = testdir.getitems(s) ../../../../pytest-3.10.1/testing/python/metafunc.py:1518: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:989: in getitems modcol = self.getmodulecol(source) ../../../../pytest-3.10.1/src/_pytest/pytester.py:1016: in getmodulecol self.config = config = self.parseconfigure(path, *configargs) ../../../../pytest-3.10.1/src/_pytest/pytester.py:954: in parseconfigure config = self.parseconfig(*args) ../../../../pytest-3.10.1/src/_pytest/pytester.py:940: in parseconfig config = _pytest.config._prepareconfig(args, self.plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___________ TestMarkersWithParametrization.test_select_based_on_mark ___________ self = testdir = def test_select_based_on_mark(self, testdir): s = """ import pytest @pytest.mark.parametrize(("n", "expected"), [ (1, 2), pytest.mark.foo((2, 3)), (3, 4), ]) def test_increment(n, expected): assert n + 1 == expected """ testdir.makepyfile(s) > rec = testdir.inline_run("-m", "foo") ../../../../pytest-3.10.1/testing/python/metafunc.py:1539: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______________ TestMarkersWithParametrization.test_simple_xfail _______________ self = testdir = def test_simple_xfail(self, testdir): s = """ import pytest @pytest.mark.parametrize(("n", "expected"), [ (1, 2), pytest.mark.xfail((1, 3)), (2, 3), ]) def test_increment(n, expected): assert n + 1 == expected """ testdir.makepyfile(s) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/metafunc.py:1579: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______ TestMarkersWithParametrization.test_simple_xfail_single_argname ________ self = testdir = def test_simple_xfail_single_argname(self, testdir): s = """ import pytest @pytest.mark.parametrize("n", [ 2, pytest.mark.xfail(3), 4, ]) def test_isEven(n): assert n % 2 == 0 """ testdir.makepyfile(s) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/metafunc.py:1596: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______________ TestMarkersWithParametrization.test_xfail_with_arg ______________ self = testdir = def test_xfail_with_arg(self, testdir): s = """ import pytest @pytest.mark.parametrize(("n", "expected"), [ (1, 2), pytest.mark.xfail("True")((1, 3)), (2, 3), ]) def test_increment(n, expected): assert n + 1 == expected """ testdir.makepyfile(s) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/metafunc.py:1612: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____________ TestMarkersWithParametrization.test_xfail_with_kwarg _____________ self = testdir = def test_xfail_with_kwarg(self, testdir): s = """ import pytest @pytest.mark.parametrize(("n", "expected"), [ (1, 2), pytest.mark.xfail(reason="some bug")((1, 3)), (2, 3), ]) def test_increment(n, expected): assert n + 1 == expected """ testdir.makepyfile(s) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/metafunc.py:1628: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _________ TestMarkersWithParametrization.test_xfail_with_arg_and_kwarg _________ self = testdir = def test_xfail_with_arg_and_kwarg(self, testdir): s = """ import pytest @pytest.mark.parametrize(("n", "expected"), [ (1, 2), pytest.mark.xfail("True", reason="some bug")((1, 3)), (2, 3), ]) def test_increment(n, expected): assert n + 1 == expected """ testdir.makepyfile(s) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/metafunc.py:1644: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _______ TestMarkersWithParametrization.test_xfail_passing_is_xpass[True] _______ self = testdir = strict = True @pytest.mark.parametrize("strict", [True, False]) def test_xfail_passing_is_xpass(self, testdir, strict): s = """ import pytest @pytest.mark.parametrize(("n", "expected"), [ (1, 2), pytest.mark.xfail("sys.version_info > (0, 0, 0)", reason="some bug", strict={strict})((2, 3)), (3, 4), ]) def test_increment(n, expected): assert n + 1 == expected """.format( strict=strict ) testdir.makepyfile(s) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/metafunc.py:1663: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______ TestMarkersWithParametrization.test_xfail_passing_is_xpass[False] _______ self = testdir = strict = False @pytest.mark.parametrize("strict", [True, False]) def test_xfail_passing_is_xpass(self, testdir, strict): s = """ import pytest @pytest.mark.parametrize(("n", "expected"), [ (1, 2), pytest.mark.xfail("sys.version_info > (0, 0, 0)", reason="some bug", strict={strict})((2, 3)), (3, 4), ]) def test_increment(n, expected): assert n + 1 == expected """.format( strict=strict ) testdir.makepyfile(s) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/metafunc.py:1663: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ___ TestMarkersWithParametrization.test_parametrize_called_in_generate_tests ___ self = testdir = def test_parametrize_called_in_generate_tests(self, testdir): s = """ import pytest def pytest_generate_tests(metafunc): passingTestData = [(1, 2), (2, 3)] failingTestData = [(1, 3), (2, 2)] testData = passingTestData + [pytest.mark.xfail(d) for d in failingTestData] metafunc.parametrize(("n", "expected"), testData) def test_increment(n, expected): assert n + 1 == expected """ testdir.makepyfile(s) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/metafunc.py:1687: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning TestMarkersWithParametrization.test_parametrize_ID_generation_string_int_works self = testdir = @pytest.mark.issue290 def test_parametrize_ID_generation_string_int_works(self, testdir): testdir.makepyfile( """ import pytest @pytest.fixture def myfixture(): return 'example' @pytest.mark.parametrize( 'limit', (0, '0')) def test_limit(limit, myfixture): return """ ) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/metafunc.py:1705: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ______ TestMarkersWithParametrization.test_parametrize_marked_value[True] ______ self = testdir = strict = True @pytest.mark.parametrize("strict", [True, False]) def test_parametrize_marked_value(self, testdir, strict): s = """ import pytest @pytest.mark.parametrize(("n", "expected"), [ pytest.param( 2,3, marks=pytest.mark.xfail("sys.version_info > (0, 0, 0)", reason="some bug", strict={strict}), ), pytest.param( 2,3, marks=[pytest.mark.xfail("sys.version_info > (0, 0, 0)", reason="some bug", strict={strict})], ), ]) def test_increment(n, expected): assert n + 1 == expected """.format( strict=strict ) testdir.makepyfile(s) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/metafunc.py:1729: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning _____ TestMarkersWithParametrization.test_parametrize_marked_value[False] ______ self = testdir = strict = False @pytest.mark.parametrize("strict", [True, False]) def test_parametrize_marked_value(self, testdir, strict): s = """ import pytest @pytest.mark.parametrize(("n", "expected"), [ pytest.param( 2,3, marks=pytest.mark.xfail("sys.version_info > (0, 0, 0)", reason="some bug", strict={strict}), ), pytest.param( 2,3, marks=[pytest.mark.xfail("sys.version_info > (0, 0, 0)", reason="some bug", strict={strict})], ), ]) def test_increment(n, expected): assert n + 1 == expected """.format( strict=strict ) testdir.makepyfile(s) > reprec = testdir.inline_run() ../../../../pytest-3.10.1/testing/python/metafunc.py:1729: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../../../pytest-3.10.1/src/_pytest/pytester.py:852: in inline_run ret = pytest.main(list(args), plugins=plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:58: in main config = _prepareconfig(args, plugins) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:196: in _prepareconfig pluginmanager=pluginmanager, args=args /usr/share/python3.7/site-packages/pluggy/hooks.py:284: in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, ../../../../pytest-3.10.1/src/_pytest/helpconfig.py:93: in pytest_cmdline_parse config = outcome.get_result() ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:675: in pytest_cmdline_parse self.parse(args) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:845: in parse self._preparse(args, addopts=addopts) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:799: in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") /usr/share/python3.7/site-packages/pluggy/manager.py:275: in load_setuptools_entrypoints self.register(plugin, name=ep.name) ../../../../pytest-3.10.1/src/_pytest/config/__init__.py:306: in register ret = super(PytestPluginManager, self).register(plugin, name) /usr/share/python3.7/site-packages/pluggy/manager.py:101: in register hook._maybe_apply_history(hookimpl) /usr/share/python3.7/site-packages/pluggy/hooks.py:331: in _maybe_apply_history res = self._hookexec(self, [method], kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:67: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/share/python3.7/site-packages/pluggy/manager.py:61: in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, /usr/share/python3.7/site-packages/pytest_timeout.py:49: in pytest_addoption help='Depreacted, use --timeout-method') ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:304: in addoption option = Argument(*optnames, **attrs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Argument(dest: None), names = ('--timeout_method',) attrs = {'action': 'store', 'choices': ['signal', 'thread'], 'help': 'Depreacted, use --timeout-method', 'type': 'choice'} typ = 'choice' def __init__(self, *names, **attrs): """store parms in private vars for use in add_argument""" self._attrs = attrs self._short_opts = [] self._long_opts = [] self.dest = attrs.get("dest") if "%default" in (attrs.get("help") or ""): warnings.warn( 'pytest now uses argparse. "%default" should be' ' changed to "%(default)s" ', DeprecationWarning, stacklevel=3, ) try: typ = attrs["type"] except KeyError: pass else: # this might raise a keyerror as well, don't want to catch that if isinstance(typ, six.string_types): if typ == "choice": warnings.warn( "`type` argument to addoption() is the string %r." " For choices this is optional and can be omitted, " " but when supplied should be a type (for example `str` or `int`)." " (options: %s)" % (typ, names), DeprecationWarning, > stacklevel=4, ) E DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ../../../../pytest-3.10.1/src/_pytest/config/argparsing.py:189: DeprecationWarning ________ TestMarkersWithParametrization.test_pytest_make_parametrize_id ________ self = testdir = def test_pytest_make_parametrize_id(self, testdir): testdir.makeconftest( """ def pytest_make_parametrize_id(config, val): return str(val * 2) """ ) testdir.makepyfile( """ import pytest @pytest.mark.parametrize("x", range(2)) def test_func(x): pass """ ) result = testdir.runpytest("-v") > result.stdout.fnmatch_lines(["*test_func*0*PASS*", "*test_func*2*PASS*"]) E Failed: nomatch: '*test_func*0*PASS*' E and: '' E remains unmatched: '*test_func*0*PASS*' ../../../../pytest-3.10.1/testing/python/metafunc.py:1750: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _ TestMarkersWithParametrization.test_pytest_make_parametrize_id_with_argname __ self = testdir = def test_pytest_make_parametrize_id_with_argname(self, testdir): testdir.makeconftest( """ def pytest_make_parametrize_id(config, val, argname): return str(val * 2 if argname == 'x' else val * 10) """ ) testdir.makepyfile( """ import pytest @pytest.mark.parametrize("x", range(2)) def test_func_a(x): pass @pytest.mark.parametrize("y", [1]) def test_func_b(y): pass """ ) result = testdir.runpytest("-v") result.stdout.fnmatch_lines( > ["*test_func_a*0*PASS*", "*test_func_a*2*PASS*", "*test_func_b*10*PASS*"] ) E Failed: nomatch: '*test_func_a*0*PASS*' E and: '' E remains unmatched: '*test_func_a*0*PASS*' ../../../../pytest-3.10.1/testing/python/metafunc.py:1774: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ TestRaises.test_raises_as_contextmanager ___________________ self = testdir = def test_raises_as_contextmanager(self, testdir): testdir.makepyfile( """ import pytest import _pytest._code def test_simple(): with pytest.raises(ZeroDivisionError) as excinfo: assert isinstance(excinfo, _pytest._code.ExceptionInfo) 1/0 print (excinfo) assert excinfo.type == ZeroDivisionError assert isinstance(excinfo.value, ZeroDivisionError) def test_noraise(): with pytest.raises(pytest.raises.Exception): with pytest.raises(ValueError): int() def test_raise_wrong_exception_passes_by(): with pytest.raises(ZeroDivisionError): with pytest.raises(ValueError): 1/0 """ ) result = testdir.runpytest() > result.stdout.fnmatch_lines(["*3 passed*"]) E Failed: nomatch: '*3 passed*' E and: '' E remains unmatched: '*3 passed*' ../../../../pytest-3.10.1/testing/python/raises.py:62: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ test_show_only_active_fixtures[--setup-only] _________________ testdir = mode = '--setup-only' def test_show_only_active_fixtures(testdir, mode): p = testdir.makepyfile( ''' import pytest @pytest.fixture def _arg0(): """hidden arg0 fixture""" @pytest.fixture def arg1(): """arg1 docstring""" def test_arg1(arg1): pass ''' ) result = testdir.runpytest(mode, p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c60ea1310>.ret ../../../../pytest-3.10.1/testing/python/setup_only.py:25: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ test_show_different_scopes[--setup-only] ___________________ testdir = mode = '--setup-only' def test_show_different_scopes(testdir, mode): p = testdir.makepyfile( ''' import pytest @pytest.fixture def arg_function(): """function scoped fixture""" @pytest.fixture(scope='session') def arg_session(): """session scoped fixture""" def test_arg1(arg_session, arg_function): pass ''' ) result = testdir.runpytest(mode, p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c60d75d90>.ret ../../../../pytest-3.10.1/testing/python/setup_only.py:49: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ test_show_nested_fixtures[--setup-only] ____________________ testdir = mode = '--setup-only' def test_show_nested_fixtures(testdir, mode): testdir.makeconftest( ''' import pytest @pytest.fixture(scope='session') def arg_same(): """session scoped fixture""" ''' ) p = testdir.makepyfile( ''' import pytest @pytest.fixture(scope='function') def arg_same(arg_same): """function scoped fixture""" def test_arg1(arg_same): pass ''' ) result = testdir.runpytest(mode, p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c61279bd0>.ret ../../../../pytest-3.10.1/testing/python/setup_only.py:83: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ test_show_fixtures_with_autouse[--setup-only] _________________ testdir = mode = '--setup-only' def test_show_fixtures_with_autouse(testdir, mode): p = testdir.makepyfile( ''' import pytest @pytest.fixture def arg_function(): """function scoped fixture""" @pytest.fixture(scope='session', autouse=True) def arg_session(): """session scoped fixture""" def test_arg1(arg_function): pass ''' ) result = testdir.runpytest(mode, p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63d07c50>.ret ../../../../pytest-3.10.1/testing/python/setup_only.py:112: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ test_show_fixtures_with_parameters[--setup-only] _______________ testdir = mode = '--setup-only' def test_show_fixtures_with_parameters(testdir, mode): testdir.makeconftest( ''' import pytest @pytest.fixture(scope='session', params=['foo', 'bar']) def arg_same(): """session scoped fixture""" ''' ) p = testdir.makepyfile( ''' import pytest @pytest.fixture(scope='function') def arg_other(arg_same): """function scoped fixture""" def test_arg1(arg_other): pass ''' ) result = testdir.runpytest(mode, p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c640c87d0>.ret ../../../../pytest-3.10.1/testing/python/setup_only.py:144: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ test_show_fixtures_with_parameter_ids[--setup-only] ______________ testdir = mode = '--setup-only' def test_show_fixtures_with_parameter_ids(testdir, mode): testdir.makeconftest( ''' import pytest @pytest.fixture( scope='session', params=['foo', 'bar'], ids=['spam', 'ham']) def arg_same(): """session scoped fixture""" ''' ) p = testdir.makepyfile( ''' import pytest @pytest.fixture(scope='function') def arg_other(arg_same): """function scoped fixture""" def test_arg1(arg_other): pass ''' ) result = testdir.runpytest(mode, p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c61033d10>.ret ../../../../pytest-3.10.1/testing/python/setup_only.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________ test_show_fixtures_with_parameter_ids_function[--setup-only] _________ testdir = mode = '--setup-only' def test_show_fixtures_with_parameter_ids_function(testdir, mode): p = testdir.makepyfile( """ import pytest @pytest.fixture(params=['foo', 'bar'], ids=lambda p: p.upper()) def foobar(): pass def test_foobar(foobar): pass """ ) result = testdir.runpytest(mode, p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c60b01ad0>.ret ../../../../pytest-3.10.1/testing/python/setup_only.py:198: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ test_show_only_active_fixtures[--setup-plan] _________________ testdir = mode = '--setup-plan' def test_show_only_active_fixtures(testdir, mode): p = testdir.makepyfile( ''' import pytest @pytest.fixture def _arg0(): """hidden arg0 fixture""" @pytest.fixture def arg1(): """arg1 docstring""" def test_arg1(arg1): pass ''' ) result = testdir.runpytest(mode, p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c64059750>.ret ../../../../pytest-3.10.1/testing/python/setup_only.py:25: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ test_show_different_scopes[--setup-plan] ___________________ testdir = mode = '--setup-plan' def test_show_different_scopes(testdir, mode): p = testdir.makepyfile( ''' import pytest @pytest.fixture def arg_function(): """function scoped fixture""" @pytest.fixture(scope='session') def arg_session(): """session scoped fixture""" def test_arg1(arg_session, arg_function): pass ''' ) result = testdir.runpytest(mode, p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c6324d2d0>.ret ../../../../pytest-3.10.1/testing/python/setup_only.py:49: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ test_show_nested_fixtures[--setup-plan] ____________________ testdir = mode = '--setup-plan' def test_show_nested_fixtures(testdir, mode): testdir.makeconftest( ''' import pytest @pytest.fixture(scope='session') def arg_same(): """session scoped fixture""" ''' ) p = testdir.makepyfile( ''' import pytest @pytest.fixture(scope='function') def arg_same(arg_same): """function scoped fixture""" def test_arg1(arg_same): pass ''' ) result = testdir.runpytest(mode, p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c60b01a10>.ret ../../../../pytest-3.10.1/testing/python/setup_only.py:83: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ test_show_fixtures_with_autouse[--setup-plan] _________________ testdir = mode = '--setup-plan' def test_show_fixtures_with_autouse(testdir, mode): p = testdir.makepyfile( ''' import pytest @pytest.fixture def arg_function(): """function scoped fixture""" @pytest.fixture(scope='session', autouse=True) def arg_session(): """session scoped fixture""" def test_arg1(arg_function): pass ''' ) result = testdir.runpytest(mode, p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c61033a10>.ret ../../../../pytest-3.10.1/testing/python/setup_only.py:112: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ test_show_fixtures_with_parameters[--setup-plan] _______________ testdir = mode = '--setup-plan' def test_show_fixtures_with_parameters(testdir, mode): testdir.makeconftest( ''' import pytest @pytest.fixture(scope='session', params=['foo', 'bar']) def arg_same(): """session scoped fixture""" ''' ) p = testdir.makepyfile( ''' import pytest @pytest.fixture(scope='function') def arg_other(arg_same): """function scoped fixture""" def test_arg1(arg_other): pass ''' ) result = testdir.runpytest(mode, p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c60e31c50>.ret ../../../../pytest-3.10.1/testing/python/setup_only.py:144: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ test_show_fixtures_with_parameter_ids[--setup-plan] ______________ testdir = mode = '--setup-plan' def test_show_fixtures_with_parameter_ids(testdir, mode): testdir.makeconftest( ''' import pytest @pytest.fixture( scope='session', params=['foo', 'bar'], ids=['spam', 'ham']) def arg_same(): """session scoped fixture""" ''' ) p = testdir.makepyfile( ''' import pytest @pytest.fixture(scope='function') def arg_other(arg_same): """function scoped fixture""" def test_arg1(arg_other): pass ''' ) result = testdir.runpytest(mode, p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c60f06710>.ret ../../../../pytest-3.10.1/testing/python/setup_only.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________ test_show_fixtures_with_parameter_ids_function[--setup-plan] _________ testdir = mode = '--setup-plan' def test_show_fixtures_with_parameter_ids_function(testdir, mode): p = testdir.makepyfile( """ import pytest @pytest.fixture(params=['foo', 'bar'], ids=lambda p: p.upper()) def foobar(): pass def test_foobar(foobar): pass """ ) result = testdir.runpytest(mode, p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63d99990>.ret ../../../../pytest-3.10.1/testing/python/setup_only.py:198: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________ test_show_only_active_fixtures[--setup-show] _________________ testdir = mode = '--setup-show' def test_show_only_active_fixtures(testdir, mode): p = testdir.makepyfile( ''' import pytest @pytest.fixture def _arg0(): """hidden arg0 fixture""" @pytest.fixture def arg1(): """arg1 docstring""" def test_arg1(arg1): pass ''' ) result = testdir.runpytest(mode, p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c6122f410>.ret ../../../../pytest-3.10.1/testing/python/setup_only.py:25: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ test_show_different_scopes[--setup-show] ___________________ testdir = mode = '--setup-show' def test_show_different_scopes(testdir, mode): p = testdir.makepyfile( ''' import pytest @pytest.fixture def arg_function(): """function scoped fixture""" @pytest.fixture(scope='session') def arg_session(): """session scoped fixture""" def test_arg1(arg_session, arg_function): pass ''' ) result = testdir.runpytest(mode, p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c6113d690>.ret ../../../../pytest-3.10.1/testing/python/setup_only.py:49: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________ test_show_nested_fixtures[--setup-show] ____________________ testdir = mode = '--setup-show' def test_show_nested_fixtures(testdir, mode): testdir.makeconftest( ''' import pytest @pytest.fixture(scope='session') def arg_same(): """session scoped fixture""" ''' ) p = testdir.makepyfile( ''' import pytest @pytest.fixture(scope='function') def arg_same(arg_same): """function scoped fixture""" def test_arg1(arg_same): pass ''' ) result = testdir.runpytest(mode, p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c631123d0>.ret ../../../../pytest-3.10.1/testing/python/setup_only.py:83: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ test_show_fixtures_with_autouse[--setup-show] _________________ testdir = mode = '--setup-show' def test_show_fixtures_with_autouse(testdir, mode): p = testdir.makepyfile( ''' import pytest @pytest.fixture def arg_function(): """function scoped fixture""" @pytest.fixture(scope='session', autouse=True) def arg_session(): """session scoped fixture""" def test_arg1(arg_function): pass ''' ) result = testdir.runpytest(mode, p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c60aa5050>.ret ../../../../pytest-3.10.1/testing/python/setup_only.py:112: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _______________ test_show_fixtures_with_parameters[--setup-show] _______________ testdir = mode = '--setup-show' def test_show_fixtures_with_parameters(testdir, mode): testdir.makeconftest( ''' import pytest @pytest.fixture(scope='session', params=['foo', 'bar']) def arg_same(): """session scoped fixture""" ''' ) p = testdir.makepyfile( ''' import pytest @pytest.fixture(scope='function') def arg_other(arg_same): """function scoped fixture""" def test_arg1(arg_other): pass ''' ) result = testdir.runpytest(mode, p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c60f062d0>.ret ../../../../pytest-3.10.1/testing/python/setup_only.py:144: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________ test_show_fixtures_with_parameter_ids[--setup-show] ______________ testdir = mode = '--setup-show' def test_show_fixtures_with_parameter_ids(testdir, mode): testdir.makeconftest( ''' import pytest @pytest.fixture( scope='session', params=['foo', 'bar'], ids=['spam', 'ham']) def arg_same(): """session scoped fixture""" ''' ) p = testdir.makepyfile( ''' import pytest @pytest.fixture(scope='function') def arg_other(arg_same): """function scoped fixture""" def test_arg1(arg_other): pass ''' ) result = testdir.runpytest(mode, p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c60fc89d0>.ret ../../../../pytest-3.10.1/testing/python/setup_only.py:178: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________ test_show_fixtures_with_parameter_ids_function[--setup-show] _________ testdir = mode = '--setup-show' def test_show_fixtures_with_parameter_ids_function(testdir, mode): p = testdir.makepyfile( """ import pytest @pytest.fixture(params=['foo', 'bar'], ids=lambda p: p.upper()) def foobar(): pass def test_foobar(foobar): pass """ ) result = testdir.runpytest(mode, p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c6122fa10>.ret ../../../../pytest-3.10.1/testing/python/setup_only.py:198: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ test_dynamic_fixture_request _________________________ testdir = def test_dynamic_fixture_request(testdir): p = testdir.makepyfile( """ import pytest @pytest.fixture() def dynamically_requested_fixture(): pass @pytest.fixture() def dependent_fixture(request): request.getfixturevalue('dynamically_requested_fixture') def test_dyn(dependent_fixture): pass """ ) result = testdir.runpytest("--setup-only", p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c636b2390>.ret ../../../../pytest-3.10.1/testing/python/setup_only.py:219: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________________________ test_capturing ________________________________ testdir = def test_capturing(testdir): p = testdir.makepyfile( """ import pytest, sys @pytest.fixture() def one(): sys.stdout.write('this should be captured') sys.stderr.write('this should also be captured') @pytest.fixture() def two(one): assert 0 def test_capturing(two): pass """ ) result = testdir.runpytest("--setup-only", p) result.stdout.fnmatch_lines( > ["this should be captured", "this should also be captured"] ) E Failed: nomatch: 'this should be captured' E and: '' E remains unmatched: 'this should be captured' ../../../../pytest-3.10.1/testing/python/setup_only.py:247: Failed ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ test_show_fixtures_and_execute_test ______________________ testdir = def test_show_fixtures_and_execute_test(testdir): """ Verifies that setups are shown and tests are executed. """ p = testdir.makepyfile( """ import pytest @pytest.fixture def arg(): assert True def test_arg(arg): assert False """ ) result = testdir.runpytest("--setup-show", p) > assert result.ret == 1 E assert 3 == 1 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c63c90090>.ret ../../../../pytest-3.10.1/testing/python/setup_only.py:265: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _________________________ test_show_fixtures_and_test __________________________ testdir = def test_show_fixtures_and_test(testdir): """ Verifies that fixtures are not executed. """ p = testdir.makepyfile( """ import pytest @pytest.fixture def arg(): assert False def test_arg(arg): assert False """ ) result = testdir.runpytest("--setup-plan", p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c61033410>.ret ../../../../pytest-3.10.1/testing/python/setup_plan.py:15: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) _____________________ test_no_items_should_not_show_output _____________________ testdir = def test_no_items_should_not_show_output(testdir): result = testdir.runpytest("--fixtures-per-test") assert "fixtures used by" not in result.stdout.str() > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c60914f50>.ret ../../../../pytest-3.10.1/testing/python/show_fixtures_per_test.py:7: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ___________________________ test_fixtures_in_module ____________________________ testdir = def test_fixtures_in_module(testdir): p = testdir.makepyfile( ''' import pytest @pytest.fixture def _arg0(): """hidden arg0 fixture""" @pytest.fixture def arg1(): """arg1 docstring""" def test_arg1(arg1): pass ''' ) result = testdir.runpytest("--fixtures-per-test", p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c6372b0d0>.ret ../../../../pytest-3.10.1/testing/python/show_fixtures_per_test.py:26: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) __________________________ test_fixtures_in_conftest ___________________________ testdir = def test_fixtures_in_conftest(testdir): testdir.makeconftest( ''' import pytest @pytest.fixture def arg1(): """arg1 docstring""" @pytest.fixture def arg2(): """arg2 docstring""" @pytest.fixture def arg3(arg1, arg2): """arg3 docstring """ ''' ) p = testdir.makepyfile( """ def test_arg2(arg2): pass def test_arg3(arg3): pass """ ) result = testdir.runpytest("--fixtures-per-test", p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c60ea0090>.ret ../../../../pytest-3.10.1/testing/python/show_fixtures_per_test.py:65: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ____________________ test_should_show_fixtures_used_by_test ____________________ testdir = def test_should_show_fixtures_used_by_test(testdir): testdir.makeconftest( ''' import pytest @pytest.fixture def arg1(): """arg1 from conftest""" @pytest.fixture def arg2(): """arg2 from conftest""" ''' ) p = testdir.makepyfile( ''' import pytest @pytest.fixture def arg1(): """arg1 from testmodule""" def test_args(arg1, arg2): pass ''' ) result = testdir.runpytest("--fixtures-per-test", p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c64c27610>.ret ../../../../pytest-3.10.1/testing/python/show_fixtures_per_test.py:109: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ________________ test_verbose_include_private_fixtures_and_loc _________________ testdir = def test_verbose_include_private_fixtures_and_loc(testdir): testdir.makeconftest( ''' import pytest @pytest.fixture def _arg1(): """_arg1 from conftest""" @pytest.fixture def arg2(_arg1): """arg2 from conftest""" ''' ) p = testdir.makepyfile( ''' import pytest @pytest.fixture def arg3(): """arg3 from testmodule""" def test_args(arg2, arg3): pass ''' ) result = testdir.runpytest("--fixtures-per-test", "-v", p) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c61281690>.ret ../../../../pytest-3.10.1/testing/python/show_fixtures_per_test.py:146: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) ______________________________ test_doctest_items ______________________________ testdir = def test_doctest_items(testdir): testdir.makepyfile( ''' def foo(): """ >>> 1 + 1 2 """ ''' ) testdir.maketxtfile( """ >>> 1 + 1 2 """ ) result = testdir.runpytest( "--fixtures-per-test", "--doctest-modules", "--doctest-glob=*.txt", "-v" ) > assert result.ret == 0 E assert 3 == 0 E + where 3 = <_pytest.pytester.RunResult object at 0x7f5c60eb7450>.ret ../../../../pytest-3.10.1/testing/python/show_fixtures_per_test.py:181: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 885, in runpytest_inprocess reprec = self.inline_run(*args, **kwargs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/pytester.py", line 852, in inline_run ret = pytest.main(list(args), plugins=plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 58, in main config = _prepareconfig(args, plugins) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 196, in _prepareconfig pluginmanager=pluginmanager, args=args File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall gen.send(outcome) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse config = outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 675, in pytest_cmdline_parse self.parse(args) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 845, in parse self._preparse(args, addopts=addopts) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 799, in _preparse self.pluginmanager.load_setuptools_entrypoints("pytest11") File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 275, in load_setuptools_entrypoints self.register(plugin, name=ep.name) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/__init__.py", line 306, in register ret = super(PytestPluginManager, self).register(plugin, name) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 101, in register hook._maybe_apply_history(hookimpl) File "/usr/share/python3.7/site-packages/pluggy/hooks.py", line 331, in _maybe_apply_history res = self._hookexec(self, [method], kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 67, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/share/python3.7/site-packages/pluggy/manager.py", line 61, in firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall return outcome.get_result() File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 80, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/share/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/share/python3.7/site-packages/pytest_timeout.py", line 49, in pytest_addoption help='Depreacted, use --timeout-method') File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 304, in addoption option = Argument(*optnames, **attrs) File "/tmp/B.W9HcNz/BUILD/pytest-3.10.1/src/_pytest/config/argparsing.py", line 189, in __init__ stacklevel=4, DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) =========================== short test summary info ============================ FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_config_error FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_root_conftest_syntax_error FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_early_hook_error_issue38_1 FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_early_hook_configure_error_issue38 FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_file_not_found FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_file_not_found_unconfigure_issue143 FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_config_preparse_plugin_option FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_assertion_magic FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_nested_import_error FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_not_collectable_arguments FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_better_reporting_on_conftest_load_failure FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_early_skip FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_issue88_initial_file_multinodes FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_issue93_initialnode_importing_capturing FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_conftest_printing_shows_if_error FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_issue109_sibling_conftests_not_loaded FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_directory_skipped FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_multiple_items_per_collector_byid FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_skip_on_generated_funcarg_id FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_direct_addressing_selects FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_direct_addressing_notfound FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_initialization_error_issue49 FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_issue134_report_error_when_collecting_member[test_fun.py::test_a] FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_report_all_failed_collections_initargs FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_unknown_option FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_getsourcelines_error_issue553 FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_plugins_given_as_strings FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_parametrized_with_bytes_regex FAIL testing/acceptance_test.py::TestGeneralUsage::()::test_parametrized_with_null_bytes FAIL testing/acceptance_test.py::TestInvocationVariants::()::test_invoke_with_string FAIL testing/acceptance_test.py::TestInvocationVariants::()::test_invoke_with_path FAIL testing/acceptance_test.py::TestInvocationVariants::()::test_invoke_plugin_api FAIL testing/acceptance_test.py::TestInvocationVariants::()::test_pyargs_importerror FAIL testing/acceptance_test.py::TestInvocationVariants::()::test_cmdline_python_package FAIL testing/acceptance_test.py::TestInvocationVariants::()::test_cmdline_python_namespace_package FAIL testing/acceptance_test.py::TestInvocationVariants::()::test_invoke_test_and_doctestmodules FAIL testing/acceptance_test.py::TestInvocationVariants::()::test_cmdline_python_package_symlink FAIL testing/acceptance_test.py::TestInvocationVariants::()::test_cmdline_python_package_not_exists FAIL testing/acceptance_test.py::TestInvocationVariants::()::test_doctest_id FAIL testing/acceptance_test.py::TestDurations::()::test_calls FAIL testing/acceptance_test.py::TestDurations::()::test_calls_show_2 FAIL testing/acceptance_test.py::TestDurations::()::test_calls_showall FAIL testing/acceptance_test.py::TestDurations::()::test_calls_showall_verbose FAIL testing/acceptance_test.py::TestDurations::()::test_with_deselected FAIL testing/acceptance_test.py::TestDurations::()::test_with_failing_collection FAIL testing/acceptance_test.py::TestDurations::()::test_with_not FAIL testing/acceptance_test.py::TestDurationWithFixture::()::test_setup_function FAIL testing/acceptance_test.py::test_import_plugin_unicode_name FAIL testing/acceptance_test.py::test_deferred_hook_checking FAIL testing/acceptance_test.py::test_fixture_values_leak FAIL testing/acceptance_test.py::test_fixture_order_respects_scope FAIL testing/acceptance_test.py::test_fixture_mock_integration FAIL testing/acceptance_test.py::test_usage_error_code FAIL testing/deprecated_test.py::test_compat_properties_deprecation FAIL testing/deprecated_test.py::test_cached_setup_deprecation FAIL testing/deprecated_test.py::test_custom_class_deprecation FAIL testing/deprecated_test.py::test_str_args_deprecated FAIL testing/deprecated_test.py::test_metafunc_addcall_deprecated FAIL testing/deprecated_test.py::test_pytest_catchlog_deprecated[catchlog] FAIL testing/deprecated_test.py::test_pytest_catchlog_deprecated[capturelog] FAIL testing/deprecated_test.py::test_pytest_plugins_in_non_top_level_conftest_deprecated FAIL testing/deprecated_test.py::test_pytest_plugins_in_non_top_level_conftest_deprecated_pyargs[True] FAIL testing/deprecated_test.py::test_pytest_plugins_in_non_top_level_conftest_deprecated_pyargs[False] FAIL testing/deprecated_test.py::test_fixture_named_request FAIL testing/test_assertion.py::TestBinReprIntegration::()::test_pytest_assertrepr_compare_called FAIL testing/test_assertion.py::TestFormatExplanation::()::test_special_chars_full FAIL testing/test_assertion.py::TestTruncateExplanation::()::test_full_output_truncated FAIL testing/test_assertion.py::test_python25_compile_issue257 FAIL testing/test_assertion.py::test_rewritten FAIL testing/test_assertion.py::test_pytest_assertrepr_compare_integration FAIL testing/test_assertion.py::test_sequence_comparison_uses_repr FAIL testing/test_assertion.py::test_assertrepr_loaded_per_dir FAIL testing/test_assertion.py::test_assertion_options FAIL testing/test_assertion.py::test_triple_quoted_string_issue113 FAIL testing/test_assertion.py::test_traceback_failure FAIL testing/test_assertion.py::test_exception_handling_no_traceback FAIL testing/test_assertion.py::test_recursion_source_decode FAIL testing/test_assertion.py::test_AssertionError_message FAIL testing/test_assertion.py::test_diff_newline_at_end FAIL testing/test_assertion.py::test_assert_with_unicode FAIL testing/test_assertion.py::test_raise_unprintable_assertion_error FAIL testing/test_assertion.py::test_raise_assertion_error_raisin_repr FAIL testing/test_assertion.py::test_issue_1944 FAIL testing/test_assertrewrite.py::TestAssertionRewrite::()::test_assertion_message FAIL testing/test_assertrewrite.py::TestAssertionRewrite::()::test_assertion_message_multiline FAIL testing/test_assertrewrite.py::TestAssertionRewrite::()::test_assertion_message_tuple FAIL testing/test_assertrewrite.py::TestAssertionRewrite::()::test_assertion_message_expr FAIL testing/test_assertrewrite.py::TestAssertionRewrite::()::test_assertion_message_escape FAIL testing/test_assertrewrite.py::TestAssertionRewrite::()::test_assertion_messages_bytes FAIL testing/test_assertrewrite.py::TestAssertionRewrite::()::test_at_operator_issue1290 FAIL testing/test_assertrewrite.py::TestRewriteOnImport::()::test_pycache_is_a_file FAIL testing/test_assertrewrite.py::TestRewriteOnImport::()::test_pycache_is_readonly FAIL testing/test_assertrewrite.py::TestRewriteOnImport::()::test_zipfile FAIL testing/test_assertrewrite.py::TestRewriteOnImport::()::test_readonly FAIL testing/test_assertrewrite.py::TestRewriteOnImport::()::test_orphaned_pyc_file FAIL testing/test_assertrewrite.py::TestRewriteOnImport::()::test_package FAIL testing/test_assertrewrite.py::TestRewriteOnImport::()::test_translate_newlines FAIL testing/test_assertrewrite.py::TestRewriteOnImport::()::test_package_without__init__py FAIL testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::()::test_loader_is_package_false_for_module FAIL testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::()::test_loader_is_package_true_for_package FAIL testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::()::test_sys_meta_path_munged FAIL testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::()::test_write_pyc FAIL testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::()::test_reload_is_same FAIL testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::()::test_reload_reloads FAIL testing/test_assertrewrite.py::TestAssertionRewriteHookDetails::()::test_get_data_support FAIL testing/test_assertrewrite.py::TestIssue925::()::test_simple_case FAIL testing/test_assertrewrite.py::TestIssue925::()::test_long_case FAIL testing/test_assertrewrite.py::TestIssue925::()::test_many_brackets FAIL testing/test_assertrewrite.py::TestIssue2121::()::test_rewrite_python_files_contain_subdirs FAIL testing/test_assertrewrite.py::TestEarlyRewriteBailout::()::test_cwd_changed FAIL testing/test_cacheprovider.py::TestNewAPI::()::test_config_cache_makedir FAIL testing/test_cacheprovider.py::TestNewAPI::()::test_config_cache_dataerror FAIL testing/test_cacheprovider.py::TestNewAPI::()::test_cache_writefail_permissions FAIL testing/test_cacheprovider.py::TestNewAPI::()::test_config_cache FAIL testing/test_cacheprovider.py::TestNewAPI::()::test_cachefuncarg FAIL testing/test_cacheprovider.py::TestNewAPI::()::test_custom_rel_cache_dir FAIL testing/test_cacheprovider.py::TestNewAPI::()::test_custom_abs_cache_dir FAIL testing/test_cacheprovider.py::TestNewAPI::()::test_custom_cache_dir_with_env_var FAIL testing/test_cacheprovider.py::test_cache_reportheader FAIL testing/test_cacheprovider.py::test_cache_reportheader_external_abspath FAIL testing/test_cacheprovider.py::test_cache_show FAIL testing/test_cacheprovider.py::TestLastFailed::()::test_lastfailed_usecase FAIL testing/test_cacheprovider.py::TestLastFailed::()::test_failedfirst_order FAIL testing/test_cacheprovider.py::TestLastFailed::()::test_lastfailed_failedfirst_order FAIL testing/test_cacheprovider.py::TestLastFailed::()::test_lastfailed_difference_invocations FAIL testing/test_cacheprovider.py::TestLastFailed::()::test_lastfailed_usecase_splice FAIL testing/test_cacheprovider.py::TestLastFailed::()::test_lastfailed_xpass FAIL testing/test_cacheprovider.py::TestLastFailed::()::test_non_serializable_parametrize FAIL testing/test_cacheprovider.py::TestLastFailed::()::test_terminal_report_lastfailed FAIL testing/test_cacheprovider.py::TestLastFailed::()::test_terminal_report_failedfirst FAIL testing/test_cacheprovider.py::TestLastFailed::()::test_lastfailed_collectfailure FAIL testing/test_cacheprovider.py::TestLastFailed::()::test_lastfailed_failure_subset FAIL testing/test_cacheprovider.py::TestLastFailed::()::test_lastfailed_creates_cache_when_needed FAIL testing/test_cacheprovider.py::TestLastFailed::()::test_xfail_not_considered_failure FAIL testing/test_cacheprovider.py::TestLastFailed::()::test_xfail_strict_considered_failure FAIL testing/test_cacheprovider.py::TestLastFailed::()::test_failed_changed_to_xfail_or_skip[mark.xfail] FAIL testing/test_cacheprovider.py::TestLastFailed::()::test_failed_changed_to_xfail_or_skip[mark.skip] FAIL testing/test_cacheprovider.py::TestLastFailed::()::test_lf_and_ff_prints_no_needless_message[--ff-False] FAIL testing/test_cacheprovider.py::TestLastFailed::()::test_lf_and_ff_prints_no_needless_message[--lf-False] FAIL testing/test_cacheprovider.py::TestLastFailed::()::test_cache_cumulative FAIL testing/test_cacheprovider.py::TestLastFailed::()::test_lastfailed_no_failures_behavior_all_passed FAIL testing/test_cacheprovider.py::TestLastFailed::()::test_lastfailed_no_failures_behavior_empty_cache FAIL testing/test_cacheprovider.py::TestNewFirst::()::test_newfirst_usecase FAIL testing/test_cacheprovider.py::TestNewFirst::()::test_newfirst_parametrize FAIL testing/test_cacheprovider.py::TestReadme::()::test_readme_passed FAIL testing/test_cacheprovider.py::TestReadme::()::test_readme_failed FAIL testing/test_cacheprovider.py::test_gitignore FAIL testing/test_capture.py::test_capturing_unicode[fd] FAIL testing/test_capture.py::test_capturing_unicode[sys] FAIL testing/test_capture.py::test_capturing_bytes_in_utf8_encoding[fd] FAIL testing/test_capture.py::test_capturing_bytes_in_utf8_encoding[sys] FAIL testing/test_capture.py::test_collect_capturing FAIL testing/test_capture.py::TestPerTestCapturing::()::test_capture_and_fixtures FAIL testing/test_capture.py::TestPerTestCapturing::()::test_no_carry_over FAIL testing/test_capture.py::TestPerTestCapturing::()::test_teardown_capturing FAIL testing/test_capture.py::TestPerTestCapturing::()::test_teardown_capturing_final FAIL testing/test_capture.py::TestPerTestCapturing::()::test_capturing_outerr FAIL testing/test_capture.py::TestCaptureFixture::()::test_std_functional[opt0] FAIL testing/test_capture.py::TestCaptureFixture::()::test_std_functional[opt1] FAIL testing/test_capture.py::TestCaptureFixture::()::test_capsyscapfd FAIL testing/test_capture.py::TestCaptureFixture::()::test_capturing_getfixturevalue FAIL testing/test_capture.py::TestCaptureFixture::()::test_capsyscapfdbinary FAIL testing/test_capture.py::TestCaptureFixture::()::test_capture_is_represented_on_failure_issue128[sys] FAIL testing/test_capture.py::TestCaptureFixture::()::test_capture_is_represented_on_failure_issue128[fd] FAIL testing/test_capture.py::TestCaptureFixture::()::test_stdfd_functional FAIL testing/test_capture.py::TestCaptureFixture::()::test_capfdbinary FAIL testing/test_capture.py::TestCaptureFixture::()::test_capsysbinary FAIL testing/test_capture.py::TestCaptureFixture::()::test_partial_setup_failure FAIL testing/test_capture.py::TestCaptureFixture::()::test_fixture_use_by_other_fixtures_teardown[capsys] FAIL testing/test_capture.py::TestCaptureFixture::()::test_fixture_use_by_other_fixtures_teardown[capfd] FAIL testing/test_capture.py::test_setup_failure_does_not_kill_capturing FAIL testing/test_capture.py::test_capture_conftest_runtest_setup FAIL testing/test_capture.py::test_capture_badoutput_issue412 FAIL testing/test_capture.py::test_capture_early_option_parsing FAIL testing/test_capture.py::test_capture_binary_output FAIL testing/test_capture.py::test_error_attribute_issue555 FAIL testing/test_capture.py::test_dontreadfrominput_has_encoding FAIL testing/test_collection.py::TestCollector::()::test_check_equality FAIL testing/test_collection.py::TestCollector::()::test_getparent FAIL testing/test_collection.py::TestCollector::()::test_getcustomfile_roundtrip FAIL testing/test_collection.py::TestCollector::()::test_can_skip_class_with_test_attr FAIL testing/test_collection.py::TestCollectFS::()::test_ignored_certain_directories FAIL testing/test_collection.py::TestCollectFS::()::test_ignored_virtualenvs[activate] FAIL testing/test_collection.py::TestCollectFS::()::test_ignored_virtualenvs[activate.csh] FAIL testing/test_collection.py::TestCollectFS::()::test_ignored_virtualenvs[activate.fish] FAIL testing/test_collection.py::TestCollectFS::()::test_ignored_virtualenvs[Activate] FAIL testing/test_collection.py::TestCollectFS::()::test_ignored_virtualenvs[Activate.bat] FAIL testing/test_collection.py::TestCollectFS::()::test_ignored_virtualenvs[Activate.ps1] FAIL testing/test_collection.py::TestCollectFS::()::test_ignored_virtualenvs_norecursedirs_precedence[activate] FAIL testing/test_collection.py::TestCollectFS::()::test_ignored_virtualenvs_norecursedirs_precedence[activate.csh] FAIL testing/test_collection.py::TestCollectFS::()::test_ignored_virtualenvs_norecursedirs_precedence[activate.fish] FAIL testing/test_collection.py::TestCollectFS::()::test_ignored_virtualenvs_norecursedirs_precedence[Activate] FAIL testing/test_collection.py::TestCollectFS::()::test_ignored_virtualenvs_norecursedirs_precedence[Activate.bat] FAIL testing/test_collection.py::TestCollectFS::()::test_ignored_virtualenvs_norecursedirs_precedence[Activate.ps1] FAIL testing/test_collection.py::TestCollectFS::()::test_custom_norecursedirs FAIL testing/test_collection.py::TestCollectFS::()::test_testpaths_ini FAIL testing/test_collection.py::TestCollectPluginHookRelay::()::test_pytest_collect_file FAIL testing/test_collection.py::TestCollectPluginHookRelay::()::test_pytest_collect_directory FAIL testing/test_collection.py::TestPrunetraceback::()::test_custom_repr_failure FAIL testing/test_collection.py::TestCustomConftests::()::test_ignore_collect_path FAIL testing/test_collection.py::TestCustomConftests::()::test_ignore_collect_not_called_on_argument FAIL testing/test_collection.py::TestCustomConftests::()::test_collectignore_exclude_on_option FAIL testing/test_collection.py::TestCustomConftests::()::test_pytest_fs_collect_hooks_are_seen FAIL testing/test_collection.py::TestCustomConftests::()::test_pytest_collect_file_from_sister_dir FAIL testing/test_collection.py::TestSession::()::test_parsearg FAIL testing/test_collection.py::TestSession::()::test_collect_topdir FAIL testing/test_collection.py::TestSession::()::test_collect_protocol_single_function FAIL testing/test_collection.py::TestSession::()::test_collect_protocol_method FAIL testing/test_collection.py::TestSession::()::test_collect_custom_nodes_multi_id FAIL testing/test_collection.py::TestSession::()::test_collect_subdir_event_ordering FAIL testing/test_collection.py::TestSession::()::test_collect_two_commandline_args FAIL testing/test_collection.py::TestSession::()::test_serialization_byid FAIL testing/test_collection.py::TestSession::()::test_find_byid_without_instance_parents FAIL testing/test_collection.py::Test_getinitialnodes::()::test_global_file FAIL testing/test_collection.py::Test_getinitialnodes::()::test_pkgfile FAIL testing/test_collection.py::Test_genitems::()::test_check_collect_hashes FAIL testing/test_collection.py::Test_genitems::()::test_example_items1 FAIL testing/test_collection.py::Test_genitems::()::test_class_and_functions_discovery_using_glob FAIL testing/test_collection.py::test_matchnodes_two_collections_same_file FAIL testing/test_collection.py::TestNodekeywords::()::test_no_under FAIL testing/test_collection.py::TestNodekeywords::()::test_issue345 FAIL testing/test_collection.py::test_exit_on_collection_error FAIL testing/test_collection.py::test_exit_on_collection_with_maxfail_smaller_than_n_errors FAIL testing/test_collection.py::test_exit_on_collection_with_maxfail_bigger_than_n_errors FAIL testing/test_collection.py::test_continue_on_collection_errors FAIL testing/test_collection.py::test_continue_on_collection_errors_maxfail FAIL testing/test_collection.py::test_fixture_scope_sibling_conftests FAIL testing/test_collection.py::test_collect_init_tests FAIL testing/test_collection.py::test_collect_invalid_signature_message FAIL testing/test_collection.py::test_collect_handles_raising_on_dunder_class FAIL testing/test_collection.py::test_collect_symlink_file_arg FAIL testing/test_collection.py::test_collect_symlink_out_of_tree FAIL testing/test_compat.py::test_is_generator_async_syntax FAIL testing/test_config.py::TestParseIni::()::test_getcfg_and_config[pytest-pytest.ini] FAIL testing/test_config.py::TestParseIni::()::test_getcfg_and_config[tool:pytest-setup.cfg] FAIL testing/test_config.py::TestParseIni::()::test_append_parse_args FAIL testing/test_config.py::TestParseIni::()::test_ini_names[tool:pytest-setup.cfg] FAIL testing/test_config.py::TestParseIni::()::test_ini_names[pytest-tox.ini] FAIL testing/test_config.py::TestParseIni::()::test_ini_names[pytest-pytest.ini] FAIL testing/test_config.py::TestParseIni::()::test_toxini_before_lower_pytestini FAIL testing/test_config.py::TestConfigCmdlineParsing::()::test_parsing_again_fails FAIL testing/test_config.py::TestConfigCmdlineParsing::()::test_explicitly_specified_config_file_is_loaded FAIL testing/test_config.py::TestConfigCmdlineParsing::()::test_absolute_win32_path FAIL testing/test_config.py::TestConfigAPI::()::test_config_trace FAIL testing/test_config.py::TestConfigAPI::()::test_config_getoption FAIL testing/test_config.py::TestConfigAPI::()::test_config_getoption_unicode FAIL testing/test_config.py::TestConfigAPI::()::test_config_getvalueorskip FAIL testing/test_config.py::TestConfigAPI::()::test_config_getvalueorskip_None FAIL testing/test_config.py::TestConfigAPI::()::test_getoption FAIL testing/test_config.py::TestConfigAPI::()::test_getconftest_pathlist FAIL testing/test_config.py::TestConfigAPI::()::test_addini FAIL testing/test_config.py::TestConfigAPI::()::test_addini_pathlist FAIL testing/test_config.py::TestConfigAPI::()::test_addini_args FAIL testing/test_config.py::TestConfigAPI::()::test_addini_linelist FAIL testing/test_config.py::TestConfigAPI::()::test_addini_bool[True-True] FAIL testing/test_config.py::TestConfigAPI::()::test_addini_bool[no-False] FAIL testing/test_config.py::TestConfigAPI::()::test_addini_bool[no-ini-True] FAIL testing/test_config.py::TestConfigAPI::()::test_addinivalue_line_existing FAIL testing/test_config.py::TestConfigAPI::()::test_addinivalue_line_new FAIL testing/test_config.py::TestConfigAPI::()::test_confcutdir_check_isdir FAIL testing/test_config.py::TestConfigFromdictargs::()::test_basic_behavior FAIL testing/test_config.py::TestConfigFromdictargs::()::test_origargs FAIL testing/test_config.py::TestConfigFromdictargs::()::test_inifilename FAIL testing/test_config.py::test_options_on_small_file_do_not_blow_up FAIL testing/test_config.py::test_cmdline_processargs_simple FAIL testing/test_config.py::test_invalid_options_show_extra_information FAIL testing/test_config.py::test_consider_args_after_options_for_rootdir_and_inifile[args0] FAIL testing/test_config.py::test_consider_args_after_options_for_rootdir_and_inifile[args1] FAIL testing/test_config.py::test_consider_args_after_options_for_rootdir_and_inifile[args2] FAIL testing/test_config.py::test_consider_args_after_options_for_rootdir_and_inifile[args3] FAIL testing/test_config.py::test_toolongargs_issue224 FAIL testing/test_config.py::test_config_in_subdirectory_colon_command_line_issue2148 FAIL testing/test_config.py::test_notify_exception FAIL testing/test_config.py::test_collect_pytest_prefix_bug_integration FAIL testing/test_config.py::TestOverrideIniArgs::()::test_override_ini_names[setup.cfg] FAIL testing/test_config.py::TestOverrideIniArgs::()::test_override_ini_names[tox.ini] FAIL testing/test_config.py::TestOverrideIniArgs::()::test_override_ini_names[pytest.ini] FAIL testing/test_config.py::TestOverrideIniArgs::()::test_override_ini_pathlist FAIL testing/test_config.py::TestOverrideIniArgs::()::test_override_multiple_and_default FAIL testing/test_config.py::TestOverrideIniArgs::()::test_override_ini_handled_asap[True] FAIL testing/test_config.py::TestOverrideIniArgs::()::test_override_ini_handled_asap[False] FAIL testing/test_config.py::TestOverrideIniArgs::()::test_addopts_before_initini FAIL testing/test_config.py::TestOverrideIniArgs::()::test_override_ini_does_not_contain_paths FAIL testing/test_config.py::TestOverrideIniArgs::()::test_multiple_override_ini_options FAIL testing/test_conftest.py::test_conftest_confcutdir FAIL testing/test_conftest.py::test_conftest_symlink FAIL testing/test_conftest.py::test_no_conftest FAIL testing/test_conftest.py::test_conftest_existing_resultlog FAIL testing/test_conftest.py::test_conftest_existing_junitxml FAIL testing/test_conftest.py::test_fixture_dependency FAIL testing/test_conftest.py::test_conftest_found_with_double_dash FAIL testing/test_conftest.py::TestConftestVisibility::()::test_parsefactories_relative_node_ids[runner-..-3] FAIL testing/test_conftest.py::TestConftestVisibility::()::test_parsefactories_relative_node_ids[package-..-3] FAIL testing/test_conftest.py::TestConftestVisibility::()::test_parsefactories_relative_node_ids[swc-../..-3] FAIL testing/test_conftest.py::TestConftestVisibility::()::test_parsefactories_relative_node_ids[snc-../..-3] FAIL testing/test_conftest.py::TestConftestVisibility::()::test_parsefactories_relative_node_ids[runner-../package-3] FAIL testing/test_conftest.py::TestConftestVisibility::()::test_parsefactories_relative_node_ids[package-.-3] FAIL testing/test_conftest.py::TestConftestVisibility::()::test_parsefactories_relative_node_ids[swc-..-3] FAIL testing/test_conftest.py::TestConftestVisibility::()::test_parsefactories_relative_node_ids[snc-..-3] FAIL testing/test_conftest.py::TestConftestVisibility::()::test_parsefactories_relative_node_ids[runner-../package/swc-1] FAIL testing/test_conftest.py::TestConftestVisibility::()::test_parsefactories_relative_node_ids[package-./swc-1] FAIL testing/test_conftest.py::TestConftestVisibility::()::test_parsefactories_relative_node_ids[swc-.-1] FAIL testing/test_conftest.py::TestConftestVisibility::()::test_parsefactories_relative_node_ids[snc-../swc-1] FAIL testing/test_conftest.py::TestConftestVisibility::()::test_parsefactories_relative_node_ids[runner-../package/snc-1] FAIL testing/test_conftest.py::TestConftestVisibility::()::test_parsefactories_relative_node_ids[package-./snc-1] FAIL testing/test_conftest.py::TestConftestVisibility::()::test_parsefactories_relative_node_ids[swc-../snc-1] FAIL testing/test_conftest.py::TestConftestVisibility::()::test_parsefactories_relative_node_ids[snc-.-1] FAIL testing/test_conftest.py::test_search_conftest_up_to_inifile[.-2-0] FAIL testing/test_conftest.py::test_search_conftest_up_to_inifile[src-1-1] FAIL testing/test_conftest.py::test_search_conftest_up_to_inifile[None-1-1] FAIL testing/test_conftest.py::test_issue1073_conftest_special_objects FAIL testing/test_conftest.py::test_conftest_exception_handling FAIL testing/test_conftest.py::test_hook_proxy FAIL testing/test_conftest.py::test_required_option_help FAIL testing/test_doctest.py::TestDoctests::()::test_collect_testtextfile FAIL testing/test_doctest.py::TestDoctests::()::test_collect_module_empty FAIL testing/test_doctest.py::TestDoctests::()::test_collect_module_single_modulelevel_doctest FAIL testing/test_doctest.py::TestDoctests::()::test_collect_module_two_doctest_one_modulelevel FAIL testing/test_doctest.py::TestDoctests::()::test_collect_module_two_doctest_no_modulelevel FAIL testing/test_doctest.py::TestDoctests::()::test_simple_doctestfile FAIL testing/test_doctest.py::TestDoctests::()::test_new_pattern FAIL testing/test_doctest.py::TestDoctests::()::test_multiple_patterns FAIL testing/test_doctest.py::TestDoctests::()::test_encoding[foo-ascii] FAIL testing/test_doctest.py::TestDoctests::()::test_encoding[\xf6\xe4\xfc-latin1] FAIL testing/test_doctest.py::TestDoctests::()::test_encoding[\xf6\xe4\xfc-utf-8] FAIL testing/test_doctest.py::TestDoctests::()::test_doctest_unexpected_exception FAIL testing/test_doctest.py::TestDoctests::()::test_docstring_partial_context_around_error FAIL testing/test_doctest.py::TestDoctests::()::test_docstring_full_context_around_error FAIL testing/test_doctest.py::TestDoctests::()::test_doctest_linedata_missing FAIL testing/test_doctest.py::TestDoctests::()::test_doctest_unex_importerror_only_txt FAIL testing/test_doctest.py::TestDoctests::()::test_doctest_unex_importerror_with_module FAIL testing/test_doctest.py::TestDoctests::()::test_doctestmodule FAIL testing/test_doctest.py::TestDoctests::()::test_doctestmodule_external_and_issue116 FAIL testing/test_doctest.py::TestDoctests::()::test_txtfile_failing FAIL testing/test_doctest.py::TestDoctests::()::test_txtfile_with_fixtures FAIL testing/test_doctest.py::TestDoctests::()::test_txtfile_with_usefixtures_in_ini FAIL testing/test_doctest.py::TestDoctests::()::test_doctestmodule_with_fixtures FAIL testing/test_doctest.py::TestDoctests::()::test_doctestmodule_three_tests FAIL testing/test_doctest.py::TestDoctests::()::test_doctestmodule_two_tests_one_fail FAIL testing/test_doctest.py::TestDoctests::()::test_ignored_whitespace FAIL testing/test_doctest.py::TestDoctests::()::test_non_ignored_whitespace FAIL testing/test_doctest.py::TestDoctests::()::test_ignored_whitespace_glob FAIL testing/test_doctest.py::TestDoctests::()::test_non_ignored_whitespace_glob FAIL testing/test_doctest.py::TestDoctests::()::test_contains_unicode FAIL testing/test_doctest.py::TestDoctests::()::test_ignore_import_errors_on_doctest FAIL testing/test_doctest.py::TestDoctests::()::test_junit_report_for_doctest FAIL testing/test_doctest.py::TestDoctests::()::test_unicode_doctest FAIL testing/test_doctest.py::TestDoctests::()::test_unicode_doctest_module FAIL testing/test_doctest.py::TestDoctests::()::test_print_unicode_value FAIL testing/test_doctest.py::TestDoctests::()::test_reportinfo FAIL testing/test_doctest.py::TestDoctests::()::test_valid_setup_py FAIL testing/test_doctest.py::TestDoctests::()::test_invalid_setup_py FAIL testing/test_doctest.py::TestLiterals::()::test_allow_unicode[ini] FAIL testing/test_doctest.py::TestLiterals::()::test_allow_unicode[comment] FAIL testing/test_doctest.py::TestLiterals::()::test_allow_bytes[ini] FAIL testing/test_doctest.py::TestLiterals::()::test_allow_bytes[comment] FAIL testing/test_doctest.py::TestLiterals::()::test_unicode_string FAIL testing/test_doctest.py::TestLiterals::()::test_bytes_literal FAIL testing/test_doctest.py::TestDoctestSkips::()::test_one_skipped[text] FAIL testing/test_doctest.py::TestDoctestSkips::()::test_one_skipped[module] FAIL testing/test_doctest.py::TestDoctestSkips::()::test_one_skipped_failed[text] FAIL testing/test_doctest.py::TestDoctestSkips::()::test_one_skipped_failed[module] FAIL testing/test_doctest.py::TestDoctestSkips::()::test_all_skipped[text] FAIL testing/test_doctest.py::TestDoctestSkips::()::test_all_skipped[module] FAIL testing/test_doctest.py::TestDoctestSkips::()::test_vacuous_all_skipped[text] FAIL testing/test_doctest.py::TestDoctestSkips::()::test_vacuous_all_skipped[module] FAIL testing/test_doctest.py::TestDoctestSkips::()::test_continue_on_failure FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_doctest_module_session_fixture FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_fixture_scopes[True-module] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_fixture_scopes[True-session] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_fixture_scopes[True-class] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_fixture_scopes[True-function] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_fixture_scopes[False-module] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_fixture_scopes[False-session] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_fixture_scopes[False-class] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_fixture_scopes[False-function] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_fixture_module_doctest_scopes[True-True-module] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_fixture_module_doctest_scopes[True-True-session] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_fixture_module_doctest_scopes[True-True-class] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_fixture_module_doctest_scopes[True-True-function] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_fixture_module_doctest_scopes[True-False-module] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_fixture_module_doctest_scopes[True-False-session] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_fixture_module_doctest_scopes[True-False-class] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_fixture_module_doctest_scopes[True-False-function] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_fixture_module_doctest_scopes[False-True-module] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_fixture_module_doctest_scopes[False-True-session] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_fixture_module_doctest_scopes[False-True-class] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_fixture_module_doctest_scopes[False-True-function] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_fixture_module_doctest_scopes[False-False-module] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_fixture_module_doctest_scopes[False-False-session] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_fixture_module_doctest_scopes[False-False-class] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_fixture_module_doctest_scopes[False-False-function] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_auto_use_request_attributes[module] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_auto_use_request_attributes[session] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_auto_use_request_attributes[class] FAIL testing/test_doctest.py::TestDoctestAutoUseFixtures::()::test_auto_use_request_attributes[function] FAIL testing/test_doctest.py::TestDoctestNamespaceFixture::()::test_namespace_doctestfile[module] FAIL testing/test_doctest.py::TestDoctestNamespaceFixture::()::test_namespace_doctestfile[session] FAIL testing/test_doctest.py::TestDoctestNamespaceFixture::()::test_namespace_doctestfile[class] FAIL testing/test_doctest.py::TestDoctestNamespaceFixture::()::test_namespace_doctestfile[function] FAIL testing/test_doctest.py::TestDoctestNamespaceFixture::()::test_namespace_pyfile[module] FAIL testing/test_doctest.py::TestDoctestNamespaceFixture::()::test_namespace_pyfile[session] FAIL testing/test_doctest.py::TestDoctestNamespaceFixture::()::test_namespace_pyfile[class] FAIL testing/test_doctest.py::TestDoctestNamespaceFixture::()::test_namespace_pyfile[function] FAIL testing/test_doctest.py::TestDoctestReportingOption::()::test_doctest_report_udiff[udiff] FAIL testing/test_doctest.py::TestDoctestReportingOption::()::test_doctest_report_udiff[UDIFF] FAIL testing/test_doctest.py::TestDoctestReportingOption::()::test_doctest_report_udiff[uDiFf] FAIL testing/test_doctest.py::TestDoctestReportingOption::()::test_doctest_report_cdiff FAIL testing/test_doctest.py::TestDoctestReportingOption::()::test_doctest_report_ndiff FAIL testing/test_doctest.py::TestDoctestReportingOption::()::test_doctest_report_none_or_only_first_failure[none] FAIL testing/test_doctest.py::TestDoctestReportingOption::()::test_doctest_report_none_or_only_first_failure[only_first_failure] FAIL testing/test_helpconfig.py::test_version FAIL testing/test_helpconfig.py::test_help FAIL testing/test_helpconfig.py::test_hookvalidation_unknown FAIL testing/test_helpconfig.py::test_hookvalidation_optional FAIL testing/test_helpconfig.py::test_traceconfig FAIL testing/test_junitxml.py::TestPython::()::test_summing_simple FAIL testing/test_junitxml.py::TestPython::()::test_summing_simple_with_errors FAIL testing/test_junitxml.py::TestPython::()::test_timing_function FAIL testing/test_junitxml.py::TestPython::()::test_setup_error FAIL testing/test_junitxml.py::TestPython::()::test_teardown_error FAIL testing/test_junitxml.py::TestPython::()::test_call_failure_teardown_error FAIL testing/test_junitxml.py::TestPython::()::test_skip_contains_name_reason FAIL testing/test_junitxml.py::TestPython::()::test_mark_skip_contains_name_reason FAIL testing/test_junitxml.py::TestPython::()::test_mark_skipif_contains_name_reason FAIL testing/test_junitxml.py::TestPython::()::test_mark_skip_doesnt_capture_output FAIL testing/test_junitxml.py::TestPython::()::test_classname_instance FAIL testing/test_junitxml.py::TestPython::()::test_classname_nested_dir FAIL testing/test_junitxml.py::TestPython::()::test_internal_error FAIL testing/test_junitxml.py::TestPython::()::test_failure_function[no] FAIL testing/test_junitxml.py::TestPython::()::test_failure_function[system-out] FAIL testing/test_junitxml.py::TestPython::()::test_failure_function[system-err] FAIL testing/test_junitxml.py::TestPython::()::test_failure_verbose_message FAIL testing/test_junitxml.py::TestPython::()::test_failure_escape FAIL testing/test_junitxml.py::TestPython::()::test_junit_prefixing FAIL testing/test_junitxml.py::TestPython::()::test_xfailure_function FAIL testing/test_junitxml.py::TestPython::()::test_xfail_captures_output_once FAIL testing/test_junitxml.py::TestPython::()::test_xfailure_xpass FAIL testing/test_junitxml.py::TestPython::()::test_xfailure_xpass_strict FAIL testing/test_junitxml.py::TestPython::()::test_collect_error FAIL testing/test_junitxml.py::TestPython::()::test_unicode FAIL testing/test_junitxml.py::TestPython::()::test_assertion_binchars FAIL testing/test_junitxml.py::TestPython::()::test_pass_captures_stdout FAIL testing/test_junitxml.py::TestPython::()::test_pass_captures_stderr FAIL testing/test_junitxml.py::TestPython::()::test_setup_error_captures_stdout FAIL testing/test_junitxml.py::TestPython::()::test_setup_error_captures_stderr FAIL testing/test_junitxml.py::TestPython::()::test_avoid_double_stdout FAIL testing/test_junitxml.py::TestNonPython::()::test_summing_simple FAIL testing/test_junitxml.py::test_nullbyte FAIL testing/test_junitxml.py::test_nullbyte_replace FAIL testing/test_junitxml.py::test_logxml_changingdir FAIL testing/test_junitxml.py::test_logxml_makedir FAIL testing/test_junitxml.py::test_escaped_parametrized_names_xml FAIL testing/test_junitxml.py::test_double_colon_split_function_issue469 FAIL testing/test_junitxml.py::test_double_colon_split_method_issue469 FAIL testing/test_junitxml.py::test_record_property FAIL testing/test_junitxml.py::test_record_property_same_name FAIL testing/test_junitxml.py::test_runs_twice FAIL testing/test_junitxml.py::test_fancy_items_regression FAIL testing/test_junitxml.py::test_set_suite_name[my_suite] FAIL testing/test_junitxml.py::test_set_suite_name[] FAIL testing/test_junitxml.py::test_escaped_skipreason_issue3533 FAIL testing/test_mark.py::test_marked_class_run_twice FAIL testing/test_mark.py::test_ini_markers FAIL testing/test_mark.py::test_markers_option FAIL testing/test_mark.py::test_ini_markers_whitespace FAIL testing/test_mark.py::test_marker_without_description FAIL testing/test_mark.py::test_markers_option_with_plugin_in_current_dir FAIL testing/test_mark.py::test_mark_on_pseudo_function FAIL testing/test_mark.py::test_strict_prohibits_unregistered_markers FAIL testing/test_mark.py::test_mark_option[spec0] FAIL testing/test_mark.py::test_mark_option[spec1] FAIL testing/test_mark.py::test_mark_option[spec2] FAIL testing/test_mark.py::test_mark_option[spec3] FAIL testing/test_mark.py::test_mark_option_custom[spec0] FAIL testing/test_mark.py::test_mark_option_custom[spec1] FAIL testing/test_mark.py::test_keyword_option_custom[spec0] FAIL testing/test_mark.py::test_keyword_option_custom[spec1] FAIL testing/test_mark.py::test_keyword_option_custom[spec2] FAIL testing/test_mark.py::test_keyword_option_custom[spec3] FAIL testing/test_mark.py::test_keyword_option_parametrize[spec0] FAIL testing/test_mark.py::test_keyword_option_parametrize[spec1] FAIL testing/test_mark.py::test_keyword_option_parametrize[spec2] FAIL testing/test_mark.py::test_keyword_option_wrong_arguments[spec0] FAIL testing/test_mark.py::test_keyword_option_wrong_arguments[spec1] FAIL testing/test_mark.py::test_parametrized_collected_from_command_line FAIL testing/test_mark.py::test_parametrized_collect_with_wrong_args FAIL testing/test_mark.py::test_parametrized_with_kwargs FAIL testing/test_mark.py::TestFunctional::()::test_mark_per_function FAIL testing/test_mark.py::TestFunctional::()::test_mark_per_module FAIL testing/test_mark.py::TestFunctional::()::test_marklist_per_class FAIL testing/test_mark.py::TestFunctional::()::test_marklist_per_module FAIL testing/test_mark.py::TestFunctional::()::test_mark_per_class_decorator FAIL testing/test_mark.py::TestFunctional::()::test_mark_per_class_decorator_plus_existing_dec FAIL testing/test_mark.py::TestFunctional::()::test_merging_markers FAIL testing/test_mark.py::TestFunctional::()::test_merging_markers_deep FAIL testing/test_mark.py::TestFunctional::()::test_mark_decorator_subclass_does_not_propagate_to_base FAIL testing/test_mark.py::TestFunctional::()::test_mark_should_not_pass_to_siebling_class FAIL testing/test_mark.py::TestFunctional::()::test_mark_decorator_baseclasses_merged FAIL testing/test_mark.py::TestFunctional::()::test_mark_closest FAIL testing/test_mark.py::TestFunctional::()::test_mark_with_wrong_marker FAIL testing/test_mark.py::TestFunctional::()::test_mark_dynamically_in_funcarg FAIL testing/test_mark.py::TestFunctional::()::test_merging_markers_two_functions FAIL testing/test_mark.py::TestFunctional::()::test_no_marker_match_on_unmarked_names FAIL testing/test_mark.py::TestFunctional::()::test_invalid_m_option FAIL testing/test_mark.py::TestFunctional::()::test_keywords_at_node_level FAIL testing/test_mark.py::TestFunctional::()::test_keyword_added_for_session FAIL testing/test_mark.py::TestKeywordSelection::()::test_select_simple FAIL testing/test_mark.py::TestKeywordSelection::()::test_select_extra_keywords[xxx] FAIL testing/test_mark.py::TestKeywordSelection::()::test_select_extra_keywords[xxx and test_2] FAIL testing/test_mark.py::TestKeywordSelection::()::test_select_extra_keywords[TestClass] FAIL testing/test_mark.py::TestKeywordSelection::()::test_select_extra_keywords[xxx and not test_1] FAIL testing/test_mark.py::TestKeywordSelection::()::test_select_extra_keywords[TestClass and test_2] FAIL testing/test_mark.py::TestKeywordSelection::()::test_select_extra_keywords[xxx and TestClass and test_2] FAIL testing/test_mark.py::TestKeywordSelection::()::test_select_starton FAIL testing/test_mark.py::TestKeywordSelection::()::test_keyword_extra FAIL testing/test_mark.py::TestKeywordSelection::()::test_no_magic_values FAIL testing/test_mark.py::test_parameterset_for_parametrize_marks[None] FAIL testing/test_mark.py::test_parameterset_for_parametrize_marks[] FAIL testing/test_mark.py::test_parameterset_for_parametrize_marks[skip] FAIL testing/test_mark.py::test_parameterset_for_parametrize_marks[xfail] FAIL testing/test_mark.py::test_parameterset_for_fail_at_collect FAIL testing/test_mark.py::test_parameterset_for_parametrize_bad_markname FAIL testing/test_mark.py::test_mark_expressions_no_smear FAIL testing/test_monkeypatch.py::test_monkeypatch_plugin FAIL testing/test_monkeypatch.py::test_issue185_time_breaks FAIL testing/test_monkeypatch.py::test_importerror FAIL testing/test_nodes.py::test_std_warn_not_pytestwarning FAIL testing/test_nose.py::test_nose_setup FAIL testing/test_nose.py::test_nose_setup_func FAIL testing/test_nose.py::test_nose_setup_func_failure FAIL testing/test_nose.py::test_nose_setup_func_failure_2 FAIL testing/test_nose.py::test_nose_setup_partial FAIL testing/test_nose.py::test_nose_test_generator_fixtures FAIL testing/test_nose.py::test_module_level_setup FAIL testing/test_nose.py::test_nose_style_setup_teardown FAIL testing/test_nose.py::test_nose_setup_ordering FAIL testing/test_nose.py::test_apiwrapper_problem_issue260 FAIL testing/test_nose.py::test_setup_teardown_linking_issue265 FAIL testing/test_nose.py::test_SkipTest_during_collection FAIL testing/test_nose.py::test_SkipTest_in_test FAIL testing/test_nose.py::test_istest_function_decorator FAIL testing/test_nose.py::test_nottest_function_decorator FAIL testing/test_nose.py::test_istest_class_decorator FAIL testing/test_nose.py::test_nottest_class_decorator FAIL testing/test_pastebin.py::TestPasteCapture::()::test_failed FAIL testing/test_pastebin.py::TestPasteCapture::()::test_all FAIL testing/test_pastebin.py::TestPasteCapture::()::test_non_ascii_paste_text FAIL testing/test_pluginmanager.py::TestPytestPluginInteractions::()::test_addhooks_nohooks FAIL testing/test_pluginmanager.py::TestPytestPluginInteractions::()::test_do_ext_namespace FAIL testing/test_pluginmanager.py::TestPytestPluginInteractions::()::test_do_option_postinitialize FAIL testing/test_pluginmanager.py::TestPytestPluginInteractions::()::test_configure FAIL testing/test_pluginmanager.py::TestPytestPluginInteractions::()::test_hook_proxy FAIL testing/test_pluginmanager.py::test_default_markers FAIL testing/test_pluginmanager.py::TestPytestPluginManager::()::test_plugin_skip FAIL testing/test_pluginmanager.py::TestPytestPluginManager::()::test_pluginmanager_ENV_startup FAIL testing/test_pytester.py::test_make_hook_recorder FAIL testing/test_pytester.py::test_parseconfig FAIL testing/test_pytester.py::test_testdir_runs_with_plugin FAIL testing/test_pytester.py::test_runresult_assertion_on_xfail FAIL testing/test_pytester.py::test_runresult_assertion_on_xpassed FAIL testing/test_pytester.py::test_xpassed_with_strict_is_considered_a_failure FAIL testing/test_pytester.py::TestInlineRunModulesCleanup::()::test_inline_run_test_module_not_cleaned_up FAIL testing/test_pytester.py::TestInlineRunModulesCleanup::()::test_inline_run_taking_and_restoring_a_sys_modules_snapshot FAIL testing/test_pytester.py::TestInlineRunModulesCleanup::()::test_inline_run_sys_modules_snapshot_restore_preserving_modules FAIL testing/test_pytester.py::TestInlineRunModulesCleanup::()::test_external_test_module_imports_not_cleaned_up FAIL testing/test_pytester.py::test_unicode_args FAIL testing/test_recwarn.py::test_recwarn_functional FAIL testing/test_recwarn.py::TestWarns::()::test_double_test FAIL testing/test_resultlog.py::test_generic_path FAIL testing/test_resultlog.py::TestWithFunctionIntegration::()::test_collection_report FAIL testing/test_resultlog.py::TestWithFunctionIntegration::()::test_log_test_outcomes FAIL testing/test_resultlog.py::test_generic FAIL testing/test_resultlog.py::test_makedir_for_resultlog FAIL testing/test_resultlog.py::test_no_resultlog_on_slaves FAIL testing/test_resultlog.py::test_failure_issue380 FAIL testing/test_runner.py::TestSetupState::()::test_setup FAIL testing/test_runner.py::TestSetupState::()::test_teardown_exact_stack_empty FAIL testing/test_runner.py::TestSetupState::()::test_setup_fails_and_failure_is_cached FAIL testing/test_runner.py::TestSetupState::()::test_teardown_multiple_one_fails FAIL testing/test_runner.py::TestSetupState::()::test_teardown_multiple_fail FAIL testing/test_runner.py::TestSetupState::()::test_teardown_multiple_scopes_one_fails FAIL testing/test_runner.py::TestExecutionNonForked::()::test_passfunction FAIL testing/test_runner.py::TestExecutionNonForked::()::test_failfunction FAIL testing/test_runner.py::TestExecutionNonForked::()::test_skipfunction FAIL testing/test_runner.py::TestExecutionNonForked::()::test_skip_in_setup_function FAIL testing/test_runner.py::TestExecutionNonForked::()::test_failure_in_setup_function FAIL testing/test_runner.py::TestExecutionNonForked::()::test_failure_in_teardown_function FAIL testing/test_runner.py::TestExecutionNonForked::()::test_custom_failure_repr FAIL testing/test_runner.py::TestExecutionNonForked::()::test_teardown_final_returncode FAIL testing/test_runner.py::TestExecutionNonForked::()::test_logstart_logfinish_hooks FAIL testing/test_runner.py::TestExecutionNonForked::()::test_exact_teardown_issue90 FAIL testing/test_runner.py::TestExecutionNonForked::()::test_exact_teardown_issue1206 FAIL testing/test_runner.py::TestExecutionNonForked::()::test_failure_in_setup_function_ignores_custom_repr FAIL testing/test_runner.py::TestExecutionNonForked::()::test_systemexit_does_not_bail_out FAIL testing/test_runner.py::TestExecutionNonForked::()::test_exit_propagates FAIL testing/test_runner.py::TestExecutionNonForked::()::test_keyboardinterrupt_propagates FAIL testing/test_runner.py::TestExecutionForked::()::test_passfunction FAIL testing/test_runner.py::TestExecutionForked::()::test_failfunction FAIL testing/test_runner.py::TestExecutionForked::()::test_skipfunction FAIL testing/test_runner.py::TestExecutionForked::()::test_skip_in_setup_function FAIL testing/test_runner.py::TestExecutionForked::()::test_failure_in_setup_function FAIL testing/test_runner.py::TestExecutionForked::()::test_failure_in_teardown_function FAIL testing/test_runner.py::TestExecutionForked::()::test_custom_failure_repr FAIL testing/test_runner.py::TestExecutionForked::()::test_teardown_final_returncode FAIL testing/test_runner.py::TestExecutionForked::()::test_logstart_logfinish_hooks FAIL testing/test_runner.py::TestExecutionForked::()::test_exact_teardown_issue90 FAIL testing/test_runner.py::TestExecutionForked::()::test_exact_teardown_issue1206 FAIL testing/test_runner.py::TestExecutionForked::()::test_failure_in_setup_function_ignores_custom_repr FAIL testing/test_runner.py::TestExecutionForked::()::test_systemexit_does_not_bail_out FAIL testing/test_runner.py::TestExecutionForked::()::test_exit_propagates FAIL testing/test_runner.py::TestExecutionForked::()::test_suicide FAIL testing/test_runner.py::TestSessionReports::()::test_collect_result FAIL testing/test_runner.py::test_pytest_exit_msg FAIL testing/test_runner.py::test_pytest_exit_returncode FAIL testing/test_runner.py::test_pytest_fail_notrace_runtest FAIL testing/test_runner.py::test_pytest_fail_notrace_collection FAIL testing/test_runner.py::test_pytest_fail_notrace_non_ascii[u] FAIL testing/test_runner.py::test_pytest_fail_notrace_non_ascii[] FAIL testing/test_runner.py::test_pytest_no_tests_collected_exit_status FAIL testing/test_runner.py::test_importorskip_module_level FAIL testing/test_runner.py::test_unicode_in_longrepr FAIL testing/test_runner.py::test_makereport_getsource FAIL testing/test_runner.py::test_makereport_getsource_dynamic_code FAIL testing/test_runner.py::test_current_test_env_var FAIL testing/test_runner.py::TestReportContents::()::test_longreprtext_pass FAIL testing/test_runner.py::TestReportContents::()::test_longreprtext_failure FAIL testing/test_runner.py::TestReportContents::()::test_captured_text FAIL testing/test_runner.py::TestReportContents::()::test_no_captured_text FAIL testing/test_runner_xunit.py::test_module_and_function_setup FAIL testing/test_runner_xunit.py::test_module_setup_failure_no_teardown FAIL testing/test_runner_xunit.py::test_setup_function_failure_no_teardown FAIL testing/test_runner_xunit.py::test_class_setup FAIL testing/test_runner_xunit.py::test_class_setup_failure_no_teardown FAIL testing/test_runner_xunit.py::test_method_setup FAIL testing/test_runner_xunit.py::test_method_setup_failure_no_teardown FAIL testing/test_runner_xunit.py::test_method_generator_setup FAIL testing/test_runner_xunit.py::test_func_generator_setup FAIL testing/test_runner_xunit.py::test_method_setup_uses_fresh_instances FAIL testing/test_runner_xunit.py::test_setup_that_skips_calledagain FAIL testing/test_runner_xunit.py::test_setup_fails_again_on_all_tests FAIL testing/test_runner_xunit.py::test_setup_funcarg_setup_when_outer_scope_fails FAIL testing/test_runner_xunit.py::test_setup_teardown_function_level_with_optional_argument[] FAIL testing/test_runner_xunit.py::test_setup_teardown_function_level_with_optional_argument[arg] FAIL testing/test_session.py::TestNewSession::()::test_basic_testitem_events FAIL testing/test_session.py::TestNewSession::()::test_nested_import_error FAIL testing/test_session.py::TestNewSession::()::test_raises_output FAIL testing/test_session.py::TestNewSession::()::test_generator_yields_None FAIL testing/test_session.py::TestNewSession::()::test_syntax_error_module FAIL testing/test_session.py::TestNewSession::()::test_exit_first_problem FAIL testing/test_session.py::TestNewSession::()::test_maxfail FAIL testing/test_session.py::TestNewSession::()::test_broken_repr FAIL testing/test_session.py::TestNewSession::()::test_skip_file_by_conftest FAIL testing/test_session.py::TestNewSession::()::test_order_of_execution FAIL testing/test_session.py::TestNewSession::()::test_collect_only_with_various_situations FAIL testing/test_session.py::TestNewSession::()::test_minus_x_import_error FAIL testing/test_session.py::TestNewSession::()::test_minus_x_overridden_by_maxfail FAIL testing/test_session.py::test_plugin_already_exists FAIL testing/test_session.py::test_exclude FAIL testing/test_session.py::test_deselect FAIL testing/test_session.py::test_sessionfinish_with_start FAIL testing/test_session.py::test_rootdir_option_arg[root] FAIL testing/test_session.py::test_rootdir_option_arg[{relative}/root] FAIL testing/test_session.py::test_rootdir_option_arg[{environment}/root] FAIL testing/test_skipping.py::TestEvaluator::()::test_no_marker FAIL testing/test_skipping.py::TestEvaluator::()::test_marked_no_args FAIL testing/test_skipping.py::TestEvaluator::()::test_marked_one_arg FAIL testing/test_skipping.py::TestEvaluator::()::test_marked_one_arg_with_reason FAIL testing/test_skipping.py::TestEvaluator::()::test_marked_one_arg_twice FAIL testing/test_skipping.py::TestEvaluator::()::test_marked_one_arg_twice2 FAIL testing/test_skipping.py::TestEvaluator::()::test_marked_skip_with_not_string FAIL testing/test_skipping.py::TestEvaluator::()::test_skipif_class FAIL testing/test_skipping.py::TestXFail::()::test_xfail_simple[True] FAIL testing/test_skipping.py::TestXFail::()::test_xfail_simple[False] FAIL testing/test_skipping.py::TestXFail::()::test_xfail_xpassed FAIL testing/test_skipping.py::TestXFail::()::test_xfail_using_platform FAIL testing/test_skipping.py::TestXFail::()::test_xfail_xpassed_strict FAIL testing/test_skipping.py::TestXFail::()::test_xfail_run_anyway FAIL testing/test_skipping.py::TestXFail::()::test_xfail_evalfalse_but_fails FAIL testing/test_skipping.py::TestXFail::()::test_xfail_not_run_xfail_reporting FAIL testing/test_skipping.py::TestXFail::()::test_xfail_not_run_no_setup_run FAIL testing/test_skipping.py::TestXFail::()::test_xfail_xpass FAIL testing/test_skipping.py::TestXFail::()::test_xfail_imperative FAIL testing/test_skipping.py::TestXFail::()::test_xfail_imperative_in_setup_function FAIL testing/test_skipping.py::TestXFail::()::test_dynamic_xfail_no_run FAIL testing/test_skipping.py::TestXFail::()::test_dynamic_xfail_set_during_funcarg_setup FAIL testing/test_skipping.py::TestXFail::()::test_xfail_raises[TypeError-TypeError-*1 xfailed*] FAIL testing/test_skipping.py::TestXFail::()::test_xfail_raises[(AttributeError, TypeError)-TypeError-*1 xfailed*] FAIL testing/test_skipping.py::TestXFail::()::test_xfail_raises[TypeError-IndexError-*1 failed*] FAIL testing/test_skipping.py::TestXFail::()::test_xfail_raises[(AttributeError, TypeError)-IndexError-*1 failed*] FAIL testing/test_skipping.py::TestXFail::()::test_strict_sanity FAIL testing/test_skipping.py::TestXFail::()::test_strict_xfail[True] FAIL testing/test_skipping.py::TestXFail::()::test_strict_xfail[False] FAIL testing/test_skipping.py::TestXFail::()::test_strict_xfail_condition[True] FAIL testing/test_skipping.py::TestXFail::()::test_strict_xfail_condition[False] FAIL testing/test_skipping.py::TestXFail::()::test_xfail_condition_keyword[True] FAIL testing/test_skipping.py::TestXFail::()::test_xfail_condition_keyword[False] FAIL testing/test_skipping.py::TestXFail::()::test_strict_xfail_default_from_file[true] FAIL testing/test_skipping.py::TestXFail::()::test_strict_xfail_default_from_file[false] FAIL testing/test_skipping.py::TestXFailwithSetupTeardown::()::test_failing_setup_issue9 FAIL testing/test_skipping.py::TestXFailwithSetupTeardown::()::test_failing_teardown_issue9 FAIL testing/test_skipping.py::TestSkip::()::test_skip_class FAIL testing/test_skipping.py::TestSkip::()::test_skips_on_false_string FAIL testing/test_skipping.py::TestSkip::()::test_arg_as_reason FAIL testing/test_skipping.py::TestSkip::()::test_skip_no_reason FAIL testing/test_skipping.py::TestSkip::()::test_skip_with_reason FAIL testing/test_skipping.py::TestSkip::()::test_only_skips_marked_test FAIL testing/test_skipping.py::TestSkip::()::test_strict_and_skip FAIL testing/test_skipping.py::TestSkipif::()::test_skipif_conditional FAIL testing/test_skipping.py::TestSkipif::()::test_skipif_reporting["hasattr(sys, 'platform')"] FAIL testing/test_skipping.py::TestSkipif::()::test_skipif_reporting[True, reason="invalid platform"] FAIL testing/test_skipping.py::TestSkipif::()::test_skipif_using_platform FAIL testing/test_skipping.py::TestSkipif::()::test_skipif_reporting_multiple[skipif-SKIP-skipped] FAIL testing/test_skipping.py::TestSkipif::()::test_skipif_reporting_multiple[xfail-XPASS-xpassed] FAIL testing/test_skipping.py::test_skip_not_report_default FAIL testing/test_skipping.py::test_skipif_class FAIL testing/test_skipping.py::test_skipped_reasons_functional FAIL testing/test_skipping.py::test_skipped_folding FAIL testing/test_skipping.py::test_reportchars FAIL testing/test_skipping.py::test_reportchars_error FAIL testing/test_skipping.py::test_reportchars_all FAIL testing/test_skipping.py::test_reportchars_all_error FAIL testing/test_skipping.py::test_errors_in_xfail_skip_expressions FAIL testing/test_skipping.py::test_xfail_skipif_with_globals FAIL testing/test_skipping.py::test_direct_gives_error FAIL testing/test_skipping.py::test_default_markers FAIL testing/test_skipping.py::test_xfail_test_setup_exception FAIL testing/test_skipping.py::test_imperativeskip_on_xfail_test FAIL testing/test_skipping.py::TestBooleanCondition::()::test_skipif FAIL testing/test_skipping.py::TestBooleanCondition::()::test_skipif_noreason FAIL testing/test_skipping.py::TestBooleanCondition::()::test_xfail FAIL testing/test_skipping.py::test_xfail_item FAIL testing/test_skipping.py::test_module_level_skip_error FAIL testing/test_skipping.py::test_module_level_skip_with_allow_module_level FAIL testing/test_skipping.py::test_invalid_skip_keyword_parameter FAIL testing/test_skipping.py::test_mark_xfail_item FAIL testing/test_skipping.py::test_summary_list_after_errors FAIL testing/test_stepwise.py::test_run_without_stepwise FAIL testing/test_stepwise.py::test_fail_and_continue_with_stepwise FAIL testing/test_stepwise.py::test_run_with_skip_option FAIL testing/test_stepwise.py::test_fail_on_errors FAIL testing/test_stepwise.py::test_change_testfile FAIL testing/test_stepwise.py::test_stop_on_collection_errors FAIL testing/test_terminal.py::TestCollectonly::()::test_collectonly_basic FAIL testing/test_terminal.py::TestCollectonly::()::test_collectonly_skipped_module FAIL testing/test_terminal.py::TestCollectonly::()::test_collectonly_failed_module FAIL testing/test_terminal.py::TestCollectonly::()::test_collectonly_fatal FAIL testing/test_terminal.py::TestCollectonly::()::test_collectonly_simple FAIL testing/test_terminal.py::TestCollectonly::()::test_collectonly_error FAIL testing/test_terminal.py::TestCollectonly::()::test_collectonly_missing_path FAIL testing/test_terminal.py::TestCollectonly::()::test_collectonly_quiet FAIL testing/test_terminal.py::TestCollectonly::()::test_collectonly_more_quiet FAIL testing/test_terminal.py::TestFixtureReporting::()::test_setup_fixture_error FAIL testing/test_terminal.py::TestFixtureReporting::()::test_teardown_fixture_error FAIL testing/test_terminal.py::TestFixtureReporting::()::test_teardown_fixture_error_and_test_failure FAIL testing/test_terminal.py::TestFixtureReporting::()::test_setup_teardown_output_and_test_failure FAIL testing/test_terminal.py::test_fail_extra_reporting FAIL testing/test_terminal.py::test_pass_extra_reporting FAIL testing/test_terminal.py::test_pass_output_reporting FAIL testing/test_terminal.py::test_color_yes FAIL testing/test_terminal.py::test_color_no FAIL testing/test_terminal.py::test_color_yes_collection_on_non_atty[True] FAIL testing/test_terminal.py::test_color_yes_collection_on_non_atty[False] FAIL testing/test_terminal.py::test_terminalreporter_reportopt_addopts FAIL testing/test_terminal.py::test_tbstyle_short FAIL testing/test_terminal.py::test_traceconfig FAIL testing/test_terminal.py::TestGenericReporting::()::test_collect_fail[default] FAIL testing/test_terminal.py::TestGenericReporting::()::test_collect_fail[verbose] FAIL testing/test_terminal.py::TestGenericReporting::()::test_collect_fail[quiet] FAIL testing/test_terminal.py::TestGenericReporting::()::test_collect_fail[fulltrace] FAIL testing/test_terminal.py::TestGenericReporting::()::test_maxfailures[default] FAIL testing/test_terminal.py::TestGenericReporting::()::test_maxfailures[verbose] FAIL testing/test_terminal.py::TestGenericReporting::()::test_maxfailures[quiet] FAIL testing/test_terminal.py::TestGenericReporting::()::test_maxfailures[fulltrace] FAIL testing/test_terminal.py::TestGenericReporting::()::test_tb_option[default] FAIL testing/test_terminal.py::TestGenericReporting::()::test_tb_option[verbose] FAIL testing/test_terminal.py::TestGenericReporting::()::test_tb_option[quiet] FAIL testing/test_terminal.py::TestGenericReporting::()::test_tb_option[fulltrace] FAIL testing/test_terminal.py::TestGenericReporting::()::test_tb_crashline[default] FAIL testing/test_terminal.py::TestGenericReporting::()::test_tb_crashline[verbose] FAIL testing/test_terminal.py::TestGenericReporting::()::test_tb_crashline[quiet] FAIL testing/test_terminal.py::TestGenericReporting::()::test_tb_crashline[fulltrace] FAIL testing/test_terminal.py::TestGenericReporting::()::test_pytest_report_header[default] FAIL testing/test_terminal.py::TestGenericReporting::()::test_pytest_report_header[verbose] FAIL testing/test_terminal.py::TestGenericReporting::()::test_pytest_report_header[quiet] FAIL testing/test_terminal.py::TestGenericReporting::()::test_pytest_report_header[fulltrace] FAIL testing/test_terminal.py::TestGenericReporting::()::test_show_capture FAIL testing/test_terminal.py::TestGenericReporting::()::test_show_capture_with_teardown_logs FAIL testing/test_terminal.py::test_fdopen_kept_alive_issue124 FAIL testing/test_terminal.py::test_tbstyle_native_setup_error FAIL testing/test_terminal.py::test_terminal_summary FAIL testing/test_terminal.py::test_no_trailing_whitespace_after_inifile_word FAIL testing/test_terminal.py::TestClassicOutputStyle::()::test_normal_verbosity FAIL testing/test_terminal.py::TestClassicOutputStyle::()::test_verbose FAIL testing/test_terminal.py::TestClassicOutputStyle::()::test_quiet FAIL testing/test_terminal.py::TestProgressOutputStyle::()::test_zero_tests_collected FAIL testing/test_terminal.py::TestProgressOutputStyle::()::test_normal FAIL testing/test_terminal.py::TestProgressOutputStyle::()::test_count FAIL testing/test_terminal.py::TestProgressOutputStyle::()::test_verbose FAIL testing/test_terminal.py::TestProgressOutputStyle::()::test_verbose_count FAIL testing/test_terminal.py::TestProgressOutputStyle::()::test_capture_no FAIL testing/test_terminal.py::TestProgressWithTeardown::()::test_teardown_simple FAIL testing/test_terminal.py::TestProgressWithTeardown::()::test_teardown_with_test_also_failing FAIL testing/test_terminal.py::TestProgressWithTeardown::()::test_teardown_many FAIL testing/test_terminal.py::TestProgressWithTeardown::()::test_teardown_many_verbose FAIL testing/test_tmpdir.py::test_tmpdir_fixture FAIL testing/test_tmpdir.py::TestTempdirHandler::()::test_mktemp FAIL testing/test_tmpdir.py::TestConfigTmpdir::()::test_getbasetemp_custom_removes_old FAIL testing/test_tmpdir.py::test_basetemp FAIL testing/test_tmpdir.py::test_tmpdir_always_is_realpath FAIL testing/test_tmpdir.py::test_tmpdir_too_long_on_parametrization FAIL testing/test_tmpdir.py::test_tmpdir_factory FAIL testing/test_tmpdir.py::test_tmpdir_fallback_tox_env FAIL testing/test_tmpdir.py::test_tmpdir_fallback_uid_not_found FAIL testing/test_unittest.py::test_simple_unittest FAIL testing/test_unittest.py::test_runTest_method FAIL testing/test_unittest.py::test_isclasscheck_issue53 FAIL testing/test_unittest.py::test_setup FAIL testing/test_unittest.py::test_setUpModule FAIL testing/test_unittest.py::test_setUpModule_failing_no_teardown FAIL testing/test_unittest.py::test_new_instances FAIL testing/test_unittest.py::test_teardown FAIL testing/test_unittest.py::test_teardown_issue1649 FAIL testing/test_unittest.py::test_unittest_skip_issue148 FAIL testing/test_unittest.py::test_method_and_teardown_failing_reporting FAIL testing/test_unittest.py::test_setup_failure_is_shown FAIL testing/test_unittest.py::test_setup_setUpClass FAIL testing/test_unittest.py::test_setup_class FAIL testing/test_unittest.py::test_testcase_custom_exception_info[Error] FAIL testing/test_unittest.py::test_testcase_custom_exception_info[Failure] FAIL testing/test_unittest.py::test_testcase_totally_incompatible_exception_info FAIL testing/test_unittest.py::test_module_level_pytestmark FAIL testing/test_unittest.py::test_djangolike_testcase FAIL testing/test_unittest.py::test_unorderable_types FAIL testing/test_unittest.py::test_unittest_typerror_traceback FAIL testing/test_unittest.py::test_unittest_expected_failure_for_failing_test_is_xfail[pytest] FAIL testing/test_unittest.py::test_unittest_expected_failure_for_passing_test_is_fail[pytest] FAIL testing/test_unittest.py::test_unittest_setup_interaction[fixture-return] FAIL testing/test_unittest.py::test_unittest_setup_interaction[yield_fixture-yield] FAIL testing/test_unittest.py::test_non_unittest_no_setupclass_support FAIL testing/test_unittest.py::test_no_teardown_if_setupclass_failed FAIL testing/test_unittest.py::test_issue333_result_clearing FAIL testing/test_unittest.py::test_unittest_raise_skip_issue748 FAIL testing/test_unittest.py::test_unittest_skip_issue1169 FAIL testing/test_unittest.py::test_class_method_containing_test_issue1558 FAIL testing/test_unittest.py::test_usefixtures_marker_on_unittest[six.moves.builtins.object] FAIL testing/test_unittest.py::test_usefixtures_marker_on_unittest[unittest.TestCase] FAIL testing/test_unittest.py::test_testcase_handles_init_exceptions FAIL testing/test_unittest.py::test_error_message_with_parametrized_fixtures FAIL testing/test_warnings.py::test_as_errors[cmdline] FAIL testing/test_warnings.py::test_as_errors[ini] FAIL testing/test_warnings.py::test_ignore[cmdline] FAIL testing/test_warnings.py::test_ignore[ini] FAIL testing/test_warnings.py::test_py2_unicode_ascii FAIL testing/test_warnings.py::test_works_with_filterwarnings FAIL testing/test_warnings.py::test_filterwarnings_mark[ini] FAIL testing/test_warnings.py::test_filterwarnings_mark[cmdline] FAIL testing/test_warnings.py::test_non_string_warning_argument FAIL testing/test_warnings.py::test_filterwarnings_mark_registration FAIL testing/test_warnings.py::test_option_precedence_cmdline_over_ini[True] FAIL testing/test_warnings.py::test_option_precedence_cmdline_over_ini[False] FAIL testing/test_warnings.py::test_option_precedence_mark FAIL testing/code/test_excinfo.py::test_match_raises_error FAIL testing/code/test_excinfo.py::test_cwd_deleted FAIL testing/logging/test_fixture.py::test_fixture_help FAIL testing/logging/test_fixture.py::test_change_level_undo FAIL testing/logging/test_reporting.py::test_nothing_logged FAIL testing/logging/test_reporting.py::test_messages_logged FAIL testing/logging/test_reporting.py::test_root_logger_affected FAIL testing/logging/test_reporting.py::test_log_cli_level_log_level_interaction FAIL testing/logging/test_reporting.py::test_setup_logging FAIL testing/logging/test_reporting.py::test_teardown_logging FAIL testing/logging/test_reporting.py::test_disable_log_capturing FAIL testing/logging/test_reporting.py::test_disable_log_capturing_ini FAIL testing/logging/test_reporting.py::test_log_cli_enabled_disabled[True] FAIL testing/logging/test_reporting.py::test_log_cli_default_level FAIL testing/logging/test_reporting.py::test_log_cli_default_level_multiple_tests FAIL testing/logging/test_reporting.py::test_log_cli_default_level_sections FAIL testing/logging/test_reporting.py::test_live_logs_unknown_sections FAIL testing/logging/test_reporting.py::test_sections_single_new_line_after_test_outcome FAIL testing/logging/test_reporting.py::test_log_cli_level FAIL testing/logging/test_reporting.py::test_log_cli_ini_level FAIL testing/logging/test_reporting.py::test_log_cli_auto_enable[] FAIL testing/logging/test_reporting.py::test_log_cli_auto_enable[--log-level=WARNING] FAIL testing/logging/test_reporting.py::test_log_cli_auto_enable[--log-file-level=WARNING] FAIL testing/logging/test_reporting.py::test_log_cli_auto_enable[--log-cli-level=WARNING] FAIL testing/logging/test_reporting.py::test_log_file_cli FAIL testing/logging/test_reporting.py::test_log_file_cli_level FAIL testing/logging/test_reporting.py::test_log_level_not_changed_by_default FAIL testing/logging/test_reporting.py::test_log_file_ini FAIL testing/logging/test_reporting.py::test_log_file_ini_level FAIL testing/logging/test_reporting.py::test_log_file_unicode FAIL testing/logging/test_reporting.py::test_collection_live_logging FAIL testing/logging/test_reporting.py::test_collection_logging_to_file FAIL testing/logging/test_reporting.py::test_log_in_hooks FAIL testing/python/approx.py::TestApprox::()::test_unicode_plus_minus FAIL testing/python/collect.py::TestModule::()::test_failing_import FAIL testing/python/collect.py::TestModule::()::test_import_duplicate FAIL testing/python/collect.py::TestModule::()::test_import_prepend_append FAIL testing/python/collect.py::TestModule::()::test_syntax_error_in_module FAIL testing/python/collect.py::TestModule::()::test_module_considers_pluginmanager_at_import FAIL testing/python/collect.py::TestModule::()::test_invalid_test_module_name FAIL testing/python/collect.py::TestModule::()::test_show_traceback_import_error[0] FAIL testing/python/collect.py::TestModule::()::test_show_traceback_import_error[1] FAIL testing/python/collect.py::TestModule::()::test_show_traceback_import_error[2] FAIL testing/python/collect.py::TestModule::()::test_show_traceback_import_error_unicode FAIL testing/python/collect.py::TestClass::()::test_class_with_init_warning FAIL testing/python/collect.py::TestClass::()::test_class_subclassobject FAIL testing/python/collect.py::TestClass::()::test_static_method FAIL testing/python/collect.py::TestClass::()::test_setup_teardown_class_as_classmethod FAIL testing/python/collect.py::TestClass::()::test_issue1035_obj_has_getattr FAIL testing/python/collect.py::TestClass::()::test_issue1579_namedtuple FAIL testing/python/collect.py::TestClass::()::test_issue2234_property FAIL testing/python/collect.py::TestGenerator::()::test_generative_functions FAIL testing/python/collect.py::TestGenerator::()::test_generative_methods FAIL testing/python/collect.py::TestGenerator::()::test_generative_functions_with_explicit_names FAIL testing/python/collect.py::TestGenerator::()::test_generative_functions_unique_explicit_names FAIL testing/python/collect.py::TestGenerator::()::test_generative_methods_with_explicit_names FAIL testing/python/collect.py::TestGenerator::()::test_order_of_execution_generator_same_codeline FAIL testing/python/collect.py::TestGenerator::()::test_order_of_execution_generator_different_codeline FAIL testing/python/collect.py::TestGenerator::()::test_setupstate_is_preserved_134 FAIL testing/python/collect.py::TestFunction::()::test_getmodulecollector FAIL testing/python/collect.py::TestFunction::()::test_function_equality FAIL testing/python/collect.py::TestFunction::()::test_issue197_parametrize_emptyset FAIL testing/python/collect.py::TestFunction::()::test_single_tuple_unwraps_values FAIL testing/python/collect.py::TestFunction::()::test_issue213_parametrize_value_no_equal FAIL testing/python/collect.py::TestFunction::()::test_parametrize_with_non_hashable_values FAIL testing/python/collect.py::TestFunction::()::test_parametrize_with_non_hashable_values_indirect FAIL testing/python/collect.py::TestFunction::()::test_parametrize_overrides_fixture FAIL testing/python/collect.py::TestFunction::()::test_parametrize_overrides_parametrized_fixture FAIL testing/python/collect.py::TestFunction::()::test_parametrize_overrides_indirect_dependency_fixture FAIL testing/python/collect.py::TestFunction::()::test_parametrize_with_mark FAIL testing/python/collect.py::TestFunction::()::test_function_equality_with_callspec FAIL testing/python/collect.py::TestFunction::()::test_pyfunc_call FAIL testing/python/collect.py::TestFunction::()::test_multiple_parametrize FAIL testing/python/collect.py::TestFunction::()::test_issue751_multiple_parametrize_with_ids FAIL testing/python/collect.py::TestFunction::()::test_parametrize_skipif FAIL testing/python/collect.py::TestFunction::()::test_parametrize_skip FAIL testing/python/collect.py::TestFunction::()::test_parametrize_skipif_no_skip FAIL testing/python/collect.py::TestFunction::()::test_parametrize_xfail FAIL testing/python/collect.py::TestFunction::()::test_parametrize_passed FAIL testing/python/collect.py::TestFunction::()::test_parametrize_xfail_passed FAIL testing/python/collect.py::TestFunction::()::test_function_original_name FAIL testing/python/collect.py::TestSorting::()::test_check_equality FAIL testing/python/collect.py::TestSorting::()::test_allow_sane_sorting_for_decorators FAIL testing/python/collect.py::TestConftestCustomization::()::test_pytest_pycollect_module FAIL testing/python/collect.py::TestConftestCustomization::()::test_customized_pymakemodule_issue205_subdir FAIL testing/python/collect.py::TestConftestCustomization::()::test_customized_pymakeitem FAIL testing/python/collect.py::TestConftestCustomization::()::test_pytest_pycollect_makeitem FAIL testing/python/collect.py::TestConftestCustomization::()::test_makeitem_non_underscore FAIL testing/python/collect.py::test_setup_only_available_in_subdir FAIL testing/python/collect.py::test_modulecol_roundtrip FAIL testing/python/collect.py::TestTracebackCutting::()::test_traceback_argsetup FAIL testing/python/collect.py::TestTracebackCutting::()::test_traceback_error_during_import FAIL testing/python/collect.py::TestTracebackCutting::()::test_traceback_filter_error_during_fixture_collection FAIL testing/python/collect.py::TestReportInfo::()::test_itemreport_reportinfo FAIL testing/python/collect.py::TestReportInfo::()::test_func_reportinfo FAIL testing/python/collect.py::TestReportInfo::()::test_class_reportinfo FAIL testing/python/collect.py::TestReportInfo::()::test_generator_reportinfo FAIL testing/python/collect.py::TestReportInfo::()::test_reportinfo_with_nasty_getattr FAIL testing/python/collect.py::test_customized_python_discovery FAIL testing/python/collect.py::test_customized_python_discovery_functions FAIL testing/python/collect.py::test_collector_attributes FAIL testing/python/collect.py::test_customize_through_attributes FAIL testing/python/collect.py::test_unorderable_types FAIL testing/python/collect.py::test_collect_functools_partial FAIL testing/python/collect.py::test_class_injection_does_not_break_collection FAIL testing/python/collect.py::test_syntax_error_with_non_ascii_chars FAIL testing/python/collect.py::test_skip_duplicates_by_default FAIL testing/python/collect.py::test_keep_duplicates FAIL testing/python/collect.py::test_package_collection_infinite_recursion FAIL testing/python/collect.py::test_package_collection_init_given_as_argument FAIL testing/python/collect.py::test_package_with_modules FAIL testing/python/collect.py::test_package_ordering FAIL testing/python/fixture.py::TestFillFixtures::()::test_funcarg_lookupfails FAIL testing/python/fixture.py::TestFillFixtures::()::test_detect_recursive_dependency_error FAIL testing/python/fixture.py::TestFillFixtures::()::test_funcarg_basic FAIL testing/python/fixture.py::TestFillFixtures::()::test_funcarg_lookup_modulelevel FAIL testing/python/fixture.py::TestFillFixtures::()::test_funcarg_lookup_classlevel FAIL testing/python/fixture.py::TestFillFixtures::()::test_conftest_funcargs_only_available_in_subdir FAIL testing/python/fixture.py::TestFillFixtures::()::test_extend_fixture_module_class FAIL testing/python/fixture.py::TestFillFixtures::()::test_extend_fixture_conftest_module FAIL testing/python/fixture.py::TestFillFixtures::()::test_extend_fixture_conftest_conftest FAIL testing/python/fixture.py::TestFillFixtures::()::test_extend_fixture_conftest_plugin FAIL testing/python/fixture.py::TestFillFixtures::()::test_extend_fixture_plugin_plugin FAIL testing/python/fixture.py::TestFillFixtures::()::test_override_parametrized_fixture_conftest_module FAIL testing/python/fixture.py::TestFillFixtures::()::test_override_parametrized_fixture_conftest_conftest FAIL testing/python/fixture.py::TestFillFixtures::()::test_override_non_parametrized_fixture_conftest_module FAIL testing/python/fixture.py::TestFillFixtures::()::test_override_non_parametrized_fixture_conftest_conftest FAIL testing/python/fixture.py::TestFillFixtures::()::test_override_autouse_fixture_with_parametrized_fixture_conftest_conftest FAIL testing/python/fixture.py::TestFillFixtures::()::test_autouse_fixture_plugin FAIL testing/python/fixture.py::TestFillFixtures::()::test_funcarg_lookup_error FAIL testing/python/fixture.py::TestFillFixtures::()::test_fixture_excinfo_leak FAIL testing/python/fixture.py::TestRequestBasic::()::test_request_attributes FAIL testing/python/fixture.py::TestRequestBasic::()::test_request_attributes_method FAIL testing/python/fixture.py::TestRequestBasic::()::test_request_contains_funcarg_arg2fixturedefs FAIL testing/python/fixture.py::TestRequestBasic::()::test_getfixturevalue_recursive FAIL testing/python/fixture.py::TestRequestBasic::()::test_getfixturevalue[getfixturevalue] FAIL testing/python/fixture.py::TestRequestBasic::()::test_getfixturevalue[getfuncargvalue] FAIL testing/python/fixture.py::TestRequestBasic::()::test_request_addfinalizer FAIL testing/python/fixture.py::TestRequestBasic::()::test_request_addfinalizer_failing_setup FAIL testing/python/fixture.py::TestRequestBasic::()::test_request_addfinalizer_failing_setup_module FAIL testing/python/fixture.py::TestRequestBasic::()::test_request_addfinalizer_partial_setup_failure FAIL testing/python/fixture.py::TestRequestBasic::()::test_request_subrequest_addfinalizer_exceptions FAIL testing/python/fixture.py::TestRequestBasic::()::test_request_getmodulepath FAIL testing/python/fixture.py::TestRequestBasic::()::test_request_fixturenames FAIL testing/python/fixture.py::TestRequestBasic::()::test_request_fixturenames_dynamic_fixture FAIL testing/python/fixture.py::TestRequestBasic::()::test_funcargnames_compatattr FAIL testing/python/fixture.py::TestRequestBasic::()::test_setupdecorator_and_xunit FAIL testing/python/fixture.py::TestRequestBasic::()::test_fixtures_sub_subdir_normalize_sep FAIL testing/python/fixture.py::TestRequestBasic::()::test_show_fixtures_color_yes FAIL testing/python/fixture.py::TestRequestBasic::()::test_newstyle_with_request FAIL testing/python/fixture.py::TestRequestBasic::()::test_setupcontext_no_param FAIL testing/python/fixture.py::TestRequestMarking::()::test_applymarker FAIL testing/python/fixture.py::TestRequestMarking::()::test_accesskeywords FAIL testing/python/fixture.py::TestRequestMarking::()::test_accessmarker_dynamic FAIL testing/python/fixture.py::TestRequestCachedSetup::()::test_request_cachedsetup_defaultmodule FAIL testing/python/fixture.py::TestRequestCachedSetup::()::test_request_cachedsetup_class FAIL testing/python/fixture.py::TestRequestCachedSetup::()::test_request_cachedsetup_extrakey FAIL testing/python/fixture.py::TestRequestCachedSetup::()::test_request_cachedsetup_cache_deletion FAIL testing/python/fixture.py::TestRequestCachedSetup::()::test_request_cached_setup_two_args FAIL testing/python/fixture.py::TestRequestCachedSetup::()::test_request_cached_setup_getfixturevalue FAIL testing/python/fixture.py::TestRequestCachedSetup::()::test_request_cached_setup_functional FAIL testing/python/fixture.py::TestRequestCachedSetup::()::test_issue117_sessionscopeteardown FAIL testing/python/fixture.py::TestFixtureUsages::()::test_noargfixturedec FAIL testing/python/fixture.py::TestFixtureUsages::()::test_receives_funcargs FAIL testing/python/fixture.py::TestFixtureUsages::()::test_receives_funcargs_scope_mismatch FAIL testing/python/fixture.py::TestFixtureUsages::()::test_receives_funcargs_scope_mismatch_issue660 FAIL testing/python/fixture.py::TestFixtureUsages::()::test_invalid_scope FAIL testing/python/fixture.py::TestFixtureUsages::()::test_funcarg_parametrized_and_used_twice FAIL testing/python/fixture.py::TestFixtureUsages::()::test_factory_uses_unknown_funcarg_as_dependency_error FAIL testing/python/fixture.py::TestFixtureUsages::()::test_factory_setup_as_classes_fails FAIL testing/python/fixture.py::TestFixtureUsages::()::test_request_can_be_overridden FAIL testing/python/fixture.py::TestFixtureUsages::()::test_usefixtures_marker FAIL testing/python/fixture.py::TestFixtureUsages::()::test_usefixtures_ini FAIL testing/python/fixture.py::TestFixtureUsages::()::test_usefixtures_seen_in_showmarkers FAIL testing/python/fixture.py::TestFixtureUsages::()::test_request_instance_issue203 FAIL testing/python/fixture.py::TestFixtureUsages::()::test_fixture_parametrized_with_iterator FAIL testing/python/fixture.py::TestFixtureManagerParseFactories::()::test_parsefactories_evil_objects_issue214 FAIL testing/python/fixture.py::TestFixtureManagerParseFactories::()::test_parsefactories_conftest FAIL testing/python/fixture.py::TestFixtureManagerParseFactories::()::test_parsefactories_conftest_and_module_and_class FAIL testing/python/fixture.py::TestFixtureManagerParseFactories::()::test_parsefactories_relative_node_ids FAIL testing/python/fixture.py::TestFixtureManagerParseFactories::()::test_package_xunit_fixture FAIL testing/python/fixture.py::TestFixtureManagerParseFactories::()::test_package_fixture_complex FAIL testing/python/fixture.py::TestFixtureManagerParseFactories::()::test_collect_custom_items FAIL testing/python/fixture.py::TestAutouseDiscovery::()::test_parsefactories_conftest FAIL testing/python/fixture.py::TestAutouseDiscovery::()::test_two_classes_separated_autouse FAIL testing/python/fixture.py::TestAutouseDiscovery::()::test_setup_at_classlevel FAIL testing/python/fixture.py::TestAutouseDiscovery::()::test_callables_nocode FAIL testing/python/fixture.py::TestAutouseDiscovery::()::test_autouse_in_conftests FAIL testing/python/fixture.py::TestAutouseDiscovery::()::test_autouse_in_module_and_two_classes FAIL testing/python/fixture.py::TestAutouseManagement::()::test_autouse_conftest_mid_directory FAIL testing/python/fixture.py::TestAutouseManagement::()::test_autouse_honored_for_yield FAIL testing/python/fixture.py::TestAutouseManagement::()::test_funcarg_and_setup FAIL testing/python/fixture.py::TestAutouseManagement::()::test_uses_parametrized_resource FAIL testing/python/fixture.py::TestAutouseManagement::()::test_session_parametrized_function FAIL testing/python/fixture.py::TestAutouseManagement::()::test_class_function_parametrization_finalization FAIL testing/python/fixture.py::TestAutouseManagement::()::test_scope_ordering FAIL testing/python/fixture.py::TestAutouseManagement::()::test_parametrization_setup_teardown_ordering FAIL testing/python/fixture.py::TestAutouseManagement::()::test_ordering_autouse_before_explicit FAIL testing/python/fixture.py::TestAutouseManagement::()::test_ordering_dependencies_torndown_first[p10-p00] FAIL testing/python/fixture.py::TestAutouseManagement::()::test_ordering_dependencies_torndown_first[p10-p01] FAIL testing/python/fixture.py::TestAutouseManagement::()::test_ordering_dependencies_torndown_first[p11-p00] FAIL testing/python/fixture.py::TestAutouseManagement::()::test_ordering_dependencies_torndown_first[p11-p01] FAIL testing/python/fixture.py::TestFixtureMarker::()::test_parametrize FAIL testing/python/fixture.py::TestFixtureMarker::()::test_multiple_parametrization_issue_736 FAIL testing/python/fixture.py::TestFixtureMarker::()::test_override_parametrized_fixture_issue_979['fixt, val'] FAIL testing/python/fixture.py::TestFixtureMarker::()::test_override_parametrized_fixture_issue_979['fixt,val'] FAIL testing/python/fixture.py::TestFixtureMarker::()::test_override_parametrized_fixture_issue_979[['fixt', 'val']] FAIL testing/python/fixture.py::TestFixtureMarker::()::test_override_parametrized_fixture_issue_979[('fixt', 'val')] FAIL testing/python/fixture.py::TestFixtureMarker::()::test_scope_session FAIL testing/python/fixture.py::TestFixtureMarker::()::test_scope_session_exc FAIL testing/python/fixture.py::TestFixtureMarker::()::test_scope_session_exc_two_fix FAIL testing/python/fixture.py::TestFixtureMarker::()::test_scope_exc FAIL testing/python/fixture.py::TestFixtureMarker::()::test_scope_module_uses_session FAIL testing/python/fixture.py::TestFixtureMarker::()::test_scope_module_and_finalizer FAIL testing/python/fixture.py::TestFixtureMarker::()::test_scope_mismatch_various[getfixturevalue] FAIL testing/python/fixture.py::TestFixtureMarker::()::test_scope_mismatch_various[cached_setup] FAIL testing/python/fixture.py::TestFixtureMarker::()::test_register_only_with_mark FAIL testing/python/fixture.py::TestFixtureMarker::()::test_parametrize_and_scope FAIL testing/python/fixture.py::TestFixtureMarker::()::test_scope_mismatch FAIL testing/python/fixture.py::TestFixtureMarker::()::test_parametrize_separated_order FAIL testing/python/fixture.py::TestFixtureMarker::()::test_module_parametrized_ordering FAIL testing/python/fixture.py::TestFixtureMarker::()::test_dynamic_parametrized_ordering FAIL testing/python/fixture.py::TestFixtureMarker::()::test_class_ordering FAIL testing/python/fixture.py::TestFixtureMarker::()::test_parametrize_separated_order_higher_scope_first FAIL testing/python/fixture.py::TestFixtureMarker::()::test_parametrized_fixture_teardown_order FAIL testing/python/fixture.py::TestFixtureMarker::()::test_fixture_finalizer FAIL testing/python/fixture.py::TestFixtureMarker::()::test_class_scope_with_normal_tests FAIL testing/python/fixture.py::TestFixtureMarker::()::test_request_is_clean FAIL testing/python/fixture.py::TestFixtureMarker::()::test_parametrize_separated_lifecycle FAIL testing/python/fixture.py::TestFixtureMarker::()::test_parametrize_function_scoped_finalizers_called FAIL testing/python/fixture.py::TestFixtureMarker::()::test_finalizer_order_on_parametrization[session] FAIL testing/python/fixture.py::TestFixtureMarker::()::test_finalizer_order_on_parametrization[function] FAIL testing/python/fixture.py::TestFixtureMarker::()::test_finalizer_order_on_parametrization[module] FAIL testing/python/fixture.py::TestFixtureMarker::()::test_class_scope_parametrization_ordering FAIL testing/python/fixture.py::TestFixtureMarker::()::test_parametrize_setup_function FAIL testing/python/fixture.py::TestFixtureMarker::()::test_fixture_marked_function_not_collected_as_test FAIL testing/python/fixture.py::TestFixtureMarker::()::test_params_and_ids FAIL testing/python/fixture.py::TestFixtureMarker::()::test_params_and_ids_yieldfixture FAIL testing/python/fixture.py::TestRequestScopeAccess::()::test_setup[session--fspath class function module] FAIL testing/python/fixture.py::TestRequestScopeAccess::()::test_setup[module-module fspath-cls function] FAIL testing/python/fixture.py::TestRequestScopeAccess::()::test_setup[class-module fspath cls-function] FAIL testing/python/fixture.py::TestRequestScopeAccess::()::test_setup[function-module fspath cls function-] FAIL testing/python/fixture.py::TestRequestScopeAccess::()::test_funcarg[session--fspath class function module] FAIL testing/python/fixture.py::TestRequestScopeAccess::()::test_funcarg[module-module fspath-cls function] FAIL testing/python/fixture.py::TestRequestScopeAccess::()::test_funcarg[class-module fspath cls-function] FAIL testing/python/fixture.py::TestRequestScopeAccess::()::test_funcarg[function-module fspath cls function-] FAIL testing/python/fixture.py::TestErrors::()::test_subfactory_missing_funcarg FAIL testing/python/fixture.py::TestErrors::()::test_issue498_fixture_finalizer_failing FAIL testing/python/fixture.py::TestErrors::()::test_setupfunc_missing_funcarg FAIL testing/python/fixture.py::TestShowFixtures::()::test_funcarg_compat FAIL testing/python/fixture.py::TestShowFixtures::()::test_show_fixtures FAIL testing/python/fixture.py::TestShowFixtures::()::test_show_fixtures_verbose FAIL testing/python/fixture.py::TestShowFixtures::()::test_show_fixtures_testmodule FAIL testing/python/fixture.py::TestShowFixtures::()::test_show_fixtures_conftest[True] FAIL testing/python/fixture.py::TestShowFixtures::()::test_show_fixtures_conftest[False] FAIL testing/python/fixture.py::TestShowFixtures::()::test_show_fixtures_trimmed_doc FAIL testing/python/fixture.py::TestShowFixtures::()::test_show_fixtures_indented_doc FAIL testing/python/fixture.py::TestShowFixtures::()::test_show_fixtures_indented_doc_first_line_unindented FAIL testing/python/fixture.py::TestShowFixtures::()::test_show_fixtures_indented_in_class FAIL testing/python/fixture.py::TestShowFixtures::()::test_show_fixtures_different_files FAIL testing/python/fixture.py::TestShowFixtures::()::test_show_fixtures_with_same_name FAIL testing/python/fixture.py::TestContextManagerFixtureFuncs::()::test_simple[fixture] FAIL testing/python/fixture.py::TestContextManagerFixtureFuncs::()::test_simple[yield_fixture] FAIL testing/python/fixture.py::TestContextManagerFixtureFuncs::()::test_scoped[fixture] FAIL testing/python/fixture.py::TestContextManagerFixtureFuncs::()::test_scoped[yield_fixture] FAIL testing/python/fixture.py::TestContextManagerFixtureFuncs::()::test_setup_exception[fixture] FAIL testing/python/fixture.py::TestContextManagerFixtureFuncs::()::test_setup_exception[yield_fixture] FAIL testing/python/fixture.py::TestContextManagerFixtureFuncs::()::test_teardown_exception[fixture] FAIL testing/python/fixture.py::TestContextManagerFixtureFuncs::()::test_teardown_exception[yield_fixture] FAIL testing/python/fixture.py::TestContextManagerFixtureFuncs::()::test_yields_more_than_one[fixture] FAIL testing/python/fixture.py::TestContextManagerFixtureFuncs::()::test_yields_more_than_one[yield_fixture] FAIL testing/python/fixture.py::TestContextManagerFixtureFuncs::()::test_custom_name[fixture] FAIL testing/python/fixture.py::TestContextManagerFixtureFuncs::()::test_custom_name[yield_fixture] FAIL testing/python/fixture.py::TestParameterizedSubRequest::()::test_call_from_fixture FAIL testing/python/fixture.py::TestParameterizedSubRequest::()::test_call_from_test FAIL testing/python/fixture.py::TestParameterizedSubRequest::()::test_external_fixture FAIL testing/python/fixture.py::TestParameterizedSubRequest::()::test_non_relative_path FAIL testing/python/fixture.py::test_pytest_fixture_setup_and_post_finalizer_hook FAIL testing/python/fixture.py::TestScopeOrdering::()::test_func_closure_module_auto[mark] FAIL testing/python/fixture.py::TestScopeOrdering::()::test_func_closure_module_auto[autouse] FAIL testing/python/fixture.py::TestScopeOrdering::()::test_func_closure_with_native_fixtures FAIL testing/python/fixture.py::TestScopeOrdering::()::test_func_closure_module FAIL testing/python/fixture.py::TestScopeOrdering::()::test_func_closure_scopes_reordered FAIL testing/python/fixture.py::TestScopeOrdering::()::test_func_closure_same_scope_closer_root_first FAIL testing/python/fixture.py::TestScopeOrdering::()::test_func_closure_all_scopes_complex FAIL testing/python/fixture.py::TestScopeOrdering::()::test_multiple_packages FAIL testing/python/integration.py::TestOEJSKITSpecials::()::test_funcarg_non_pycollectobj FAIL testing/python/integration.py::TestOEJSKITSpecials::()::test_autouse_fixture FAIL testing/python/integration.py::TestMockDecoration::()::test_unittest_mock FAIL testing/python/integration.py::TestMockDecoration::()::test_unittest_mock_and_fixture FAIL testing/python/integration.py::TestReRunTests::()::test_rerun FAIL testing/python/integration.py::TestNoselikeTestAttribute::()::test_module_with_global_test FAIL testing/python/integration.py::TestNoselikeTestAttribute::()::test_class_and_method FAIL testing/python/integration.py::TestNoselikeTestAttribute::()::test_unittest_class FAIL testing/python/integration.py::TestNoselikeTestAttribute::()::test_class_with_nasty_getattr FAIL testing/python/integration.py::TestParameterize::()::test_idfn_marker FAIL testing/python/integration.py::TestParameterize::()::test_idfn_fixture FAIL testing/python/metafunc.py::TestMetafunc::()::test_parametrize_indirect_list_functional FAIL testing/python/metafunc.py::TestMetafunc::()::test_parametrize_uses_no_fixture_error_indirect_false FAIL testing/python/metafunc.py::TestMetafunc::()::test_parametrize_uses_no_fixture_error_indirect_true FAIL testing/python/metafunc.py::TestMetafunc::()::test_parametrize_indirect_uses_no_fixture_error_indirect_string FAIL testing/python/metafunc.py::TestMetafunc::()::test_parametrize_indirect_uses_no_fixture_error_indirect_list FAIL testing/python/metafunc.py::TestMetafunc::()::test_parametrize_argument_not_in_indirect_list FAIL testing/python/metafunc.py::TestMetafunc::()::test_parametrize_gives_indicative_error_on_function_with_default_argument FAIL testing/python/metafunc.py::TestMetafunc::()::test_parametrize_functional FAIL testing/python/metafunc.py::TestMetafunc::()::test_parametrize_multiple_times FAIL testing/python/metafunc.py::TestMetafunc::()::test_parametrize_CSV FAIL testing/python/metafunc.py::TestMetafunc::()::test_parametrize_class_scenarios FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_attributes FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_addcall_with_two_funcargs_generators FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_two_functions FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_noself_in_method FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_generate_plugin_and_module FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_generate_tests_in_class FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_two_functions_not_same_instance FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_issue28_setup_method_in_generate_tests FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_parametrize_functional2 FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_parametrize_and_inner_getfixturevalue FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_parametrize_on_setup_arg FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_parametrize_with_ids FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_parametrize_without_ids FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_parametrize_with_None_in_ids FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_fixture_parametrized_empty_ids FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_parametrized_empty_ids FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_parametrized_ids_invalid_type FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_parametrize_with_identical_ids_get_unique_names FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_parametrize_scope_overrides[module-2] FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_parametrize_scope_overrides[function-4] FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_parametrize_issue323 FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_usefixtures_seen_in_generate_tests FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_generate_tests_only_done_in_subdir FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_generate_same_function_names_issue403 FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_parametrize_misspelling[parametrise] FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_parametrize_misspelling[parameterize] FAIL testing/python/metafunc.py::TestMetafuncFunctional::()::test_parametrize_misspelling[parameterise] FAIL testing/python/metafunc.py::TestMetafuncFunctionalAuto::()::test_parametrize_auto_scope FAIL testing/python/metafunc.py::TestMetafuncFunctionalAuto::()::test_parametrize_auto_scope_indirect FAIL testing/python/metafunc.py::TestMetafuncFunctionalAuto::()::test_parametrize_auto_scope_override_fixture FAIL testing/python/metafunc.py::TestMetafuncFunctionalAuto::()::test_parametrize_all_indirects FAIL testing/python/metafunc.py::TestMetafuncFunctionalAuto::()::test_parametrize_some_arguments_auto_scope FAIL testing/python/metafunc.py::TestMetafuncFunctionalAuto::()::test_parametrize_issue634 FAIL testing/python/metafunc.py::TestMarkersWithParametrization::()::test_simple_mark FAIL testing/python/metafunc.py::TestMarkersWithParametrization::()::test_select_based_on_mark FAIL testing/python/metafunc.py::TestMarkersWithParametrization::()::test_simple_xfail FAIL testing/python/metafunc.py::TestMarkersWithParametrization::()::test_simple_xfail_single_argname FAIL testing/python/metafunc.py::TestMarkersWithParametrization::()::test_xfail_with_arg FAIL testing/python/metafunc.py::TestMarkersWithParametrization::()::test_xfail_with_kwarg FAIL testing/python/metafunc.py::TestMarkersWithParametrization::()::test_xfail_with_arg_and_kwarg FAIL testing/python/metafunc.py::TestMarkersWithParametrization::()::test_xfail_passing_is_xpass[True] FAIL testing/python/metafunc.py::TestMarkersWithParametrization::()::test_xfail_passing_is_xpass[False] FAIL testing/python/metafunc.py::TestMarkersWithParametrization::()::test_parametrize_called_in_generate_tests FAIL testing/python/metafunc.py::TestMarkersWithParametrization::()::test_parametrize_ID_generation_string_int_works FAIL testing/python/metafunc.py::TestMarkersWithParametrization::()::test_parametrize_marked_value[True] FAIL testing/python/metafunc.py::TestMarkersWithParametrization::()::test_parametrize_marked_value[False] FAIL testing/python/metafunc.py::TestMarkersWithParametrization::()::test_pytest_make_parametrize_id FAIL testing/python/metafunc.py::TestMarkersWithParametrization::()::test_pytest_make_parametrize_id_with_argname FAIL testing/python/raises.py::TestRaises::()::test_raises_as_contextmanager FAIL testing/python/setup_only.py::test_show_only_active_fixtures[--setup-only] FAIL testing/python/setup_only.py::test_show_different_scopes[--setup-only] FAIL testing/python/setup_only.py::test_show_nested_fixtures[--setup-only] FAIL testing/python/setup_only.py::test_show_fixtures_with_autouse[--setup-only] FAIL testing/python/setup_only.py::test_show_fixtures_with_parameters[--setup-only] FAIL testing/python/setup_only.py::test_show_fixtures_with_parameter_ids[--setup-only] FAIL testing/python/setup_only.py::test_show_fixtures_with_parameter_ids_function[--setup-only] FAIL testing/python/setup_only.py::test_show_only_active_fixtures[--setup-plan] FAIL testing/python/setup_only.py::test_show_different_scopes[--setup-plan] FAIL testing/python/setup_only.py::test_show_nested_fixtures[--setup-plan] FAIL testing/python/setup_only.py::test_show_fixtures_with_autouse[--setup-plan] FAIL testing/python/setup_only.py::test_show_fixtures_with_parameters[--setup-plan] FAIL testing/python/setup_only.py::test_show_fixtures_with_parameter_ids[--setup-plan] FAIL testing/python/setup_only.py::test_show_fixtures_with_parameter_ids_function[--setup-plan] FAIL testing/python/setup_only.py::test_show_only_active_fixtures[--setup-show] FAIL testing/python/setup_only.py::test_show_different_scopes[--setup-show] FAIL testing/python/setup_only.py::test_show_nested_fixtures[--setup-show] FAIL testing/python/setup_only.py::test_show_fixtures_with_autouse[--setup-show] FAIL testing/python/setup_only.py::test_show_fixtures_with_parameters[--setup-show] FAIL testing/python/setup_only.py::test_show_fixtures_with_parameter_ids[--setup-show] FAIL testing/python/setup_only.py::test_show_fixtures_with_parameter_ids_function[--setup-show] FAIL testing/python/setup_only.py::test_dynamic_fixture_request FAIL testing/python/setup_only.py::test_capturing FAIL testing/python/setup_only.py::test_show_fixtures_and_execute_test FAIL testing/python/setup_plan.py::test_show_fixtures_and_test FAIL testing/python/show_fixtures_per_test.py::test_no_items_should_not_show_output FAIL testing/python/show_fixtures_per_test.py::test_fixtures_in_module FAIL testing/python/show_fixtures_per_test.py::test_fixtures_in_conftest FAIL testing/python/show_fixtures_per_test.py::test_should_show_fixtures_used_by_test FAIL testing/python/show_fixtures_per_test.py::test_verbose_include_private_fixtures_and_loc FAIL testing/python/show_fixtures_per_test.py::test_doctest_items SKIP [1] testing/test_assertion.py:1021: This bug does not exist on PY3 SKIP [1] testing/test_assertrewrite.py:853: python 2 only SKIP [1] testing/test_assertrewrite.py:902: condition: sys.version_info[0] >= 3 SKIP [1] testing/test_assertrewrite.py:911: condition: sys.version_info[0] >= 3 SKIP [1] testing/test_assertrewrite.py:922: condition: sys.version_info[0] >= 3 SKIP [1] testing/test_assertrewrite.py:933: condition: sys.version_info[0] >= 3 SKIP [1] testing/test_capture.py:518: only have capsysbinary in python 3 SKIP [1] testing/test_capture.py:856: python2 has no buffer SKIP [2] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/test_capture.py:925: could not run 'lsof' SKIP [2] testing/test_capture.py:1080: text output different for bytes on python3 SKIP [1] testing/test_capture.py:1344: only py3.6+ on windows SKIP [1] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/test_junitxml.py:1041: could not import 'xdist' SKIP [1] testing/test_monkeypatch.py:211: Python 2 only test SKIP [1] testing/test_monkeypatch.py:219: Python 2 only test SKIP [1] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/test_parseopt.py:325: bash provided no output, argcomplete not available? SKIP [1] testing/test_skipping.py:52: condition: sys.version_info[0] >= 3 SKIP [1] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/test_terminal.py:1293: could not import 'xdist' SKIP [1] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/test_terminal.py:1298: could not import 'xdist' SKIP [1] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/test_terminal.py:1309: could not import 'xdist' SKIP [1] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/test_terminal.py:1404: could not import 'xdist' SKIP [1] testing/test_tmpdir.py:179: win only SKIP [8] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/test_unittest.py:398: could not import 'twisted.trial.unittest' SKIP [1] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/test_unittest.py:940: could not import 'unittest2' SKIP [1] testing/test_warnings.py:158: warnings message is broken as it is not str instance SKIP [1] testing/test_warnings.py:570: Python 2 only issue SKIP [1] testing/code/test_code.py:99: python 2 only issue SKIP [1] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/code/test_excinfo.py:280: could not import 'decorator' SKIP [1] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/python/integration.py:169: could not import 'mock' SKIP [1] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/python/integration.py:192: could not import 'mock' SKIP [1] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/python/integration.py:225: could not import 'mock' SKIP [1] /tmp/B.W9HcNz/BUILD/pytest-3.10.1/testing/python/integration.py:249: could not import 'mock' 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_runner.py::test_runtest_in_module_ordering XFAIL testing/python/fixture.py::TestAutouseDiscovery::()::test_setup_enabled_functionnode 'enabled' feature not implemented XFAIL testing/python/integration.py::TestMockDecoration::()::test_wrapped_getfuncargnames_patching getfuncargnames breaks if mock is imported XFAIL testing/python/metafunc.py::TestMarkersWithParametrization::()::test_nested_marks is this important to support?? =============================== warnings summary =============================== testing/deprecated_test.py::test_yield_tests_deprecation /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) testing/deprecated_test.py::test_funcarg_prefix_deprecation /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) testing/deprecated_test.py::test_pytest_setup_cfg_deprecated /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) testing/deprecated_test.py::test_pytest_custom_cfg_deprecated /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) testing/deprecated_test.py::test_resultlog_is_deprecated /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) testing/test_assertion.py::test_assert_tuple_warning /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) testing/test_cacheprovider.py::TestNewAPI::()::test_cache_writefail_cachfile_silent /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) testing/test_cacheprovider.py::TestNewAPI::()::test_cache_failure_warns /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) testing/test_config.py::TestLegacyWarning::()::test_warn_config /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) testing/test_config.py::TestLegacyWarning::()::test_warn_on_test_item_from_request[True] /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) testing/test_config.py::TestLegacyWarning::()::test_warn_on_test_item_from_request[False] /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) testing/test_junitxml.py::test_record_attribute /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) testing/test_terminal.py::test_terminal_summary_warnings_are_displayed /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) testing/test_warnings.py::test_normal_flow /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) testing/test_warnings.py::test_setup_teardown_warnings /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) testing/test_warnings.py::test_unicode /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) testing/test_warnings.py::test_warning_captured_hook /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) testing/test_warnings.py::test_collection_warnings /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) testing/test_warnings.py::test_mark_regex_escape /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) testing/test_warnings.py::test_hide_pytest_internal_warnings[no] /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) testing/test_warnings.py::test_hide_pytest_internal_warnings[ini] /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) testing/test_warnings.py::test_hide_pytest_internal_warnings[cmdline] /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) testing/python/collect.py::TestFunction::()::test_function_as_object_instance_ignored /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) testing/python/collect.py::test_dont_collect_non_function_callable /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) testing/python/metafunc.py::TestMetafunc::()::test_parametrize_ids_exception /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout_method',)) res = hook_impl.function(*args) /usr/share/python3.7/site-packages/pluggy/callers.py:187: DeprecationWarning: `type` argument to addoption() is the string 'choice'. For choices this is optional and can be omitted, but when supplied should be a type (for example `str` or `int`). (options: ('--timeout-method',)) res = hook_impl.function(*args) -- Docs: https://docs.pytest.org/en/latest/warnings.html 1250 failed, 935 passed, 40 skipped, 72 deselected, 10 xfailed, 56 warnings in 186.46 seconds error: Bad exit status from /tmp/B.W9HcNz/BUILD/tmp/rpm-tmp.88897 (%build) RPM build errors: Bad exit status from /tmp/B.W9HcNz/BUILD/tmp/rpm-tmp.88897 (%build) ended at: Sat Aug 24 23:49:46 2019, done in 0:07:39.397855 error: No files produced. + chmod -R u+rwX /tmp/B.W9HcNz/BUILD + rm -rf /tmp/B.W9HcNz/tmp /tmp/B.W9HcNz/BUILD + rm -rf /tmp/B.W9HcNz Begin-TLD-Builder-Info Build-Time: user:262.22s sys:17.91s real:461.05s (faults io:5 non-io:4019130) End-TLD-Builder-Info